开发者

Weird, NPC Distance Chase bug

开发者 https://www.devze.com 2022-12-07 23:30 出处:网络
I have a testing studio place where I created Npcs to chase each other and they do that by looping through workspace to find other humanoids besides their own and chasing them. The problem is I use th

I have a testing studio place where I created Npcs to chase each other and they do that by looping through workspace to find other humanoids besides their own and chasing them. The problem is I use this if statement (fighter.HumanoidRootPart.Position.X. - closestEnemy.HumanoidRootPart.Position.X). Magnitude < 3 that when they are close and less than 3 studs away from each other they will damage one another, but when they are even touching each other, no Damage is happening and when I print that equation into output, I get a high nu开发者_运维百科mber like "55 or 40". Someone please help! Thank you.

`

0

精彩评论

暂无评论...
验证码 换一张
取 消