wildcherrii Posted April 11, 2022 Posted April 11, 2022 I would like to know why this happens to me for no reason at all. In the Start() script for my monster I give him a point to travel to with the default speed. self.ai.piv:GoToPoint(pos.x, pos.y, pos.z, 1.4, 1.0) later on in side the Updatephysics() loop I have need to change the monster speed. So i issue a new : self.ai.piv:GoToPoint(pos.x, pos.y, pos.z, 2.8, 2.0) But oh NO!!!! nothing happens, he traverses at the same speed. How stupid. Is this the normal way to increase and or decreases moving speed when using a gotopoint() command. If so why does it not work for me, theres nothing special going on in the code. Quote
Thirsty Panther Posted April 11, 2022 Posted April 11, 2022 Without see all your code it's hard to be certain. Try increasing the speed to something higher. The "crawler" has a speed of 5. Quote
Josh Posted April 11, 2022 Posted April 11, 2022 I looked at the source code, and inside that command there is a check to skip the command if the destination is close to what was previously set. So your command is being ignored. You can prevent this by calling Entity::Stop() before setting the entity destination with the new speed. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.