Scripts / [SOLVED] Move Forward not work

Author
Message
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 15th Apr 2021 20:22
Can someone help me please,
i want to move an entitie with this script, it turns to me but it doesn't seems to move forward:

function ai_moveunseen_init(e)
end
function ai_moveunseen_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 2000 then
RotateToPlayerSlowly ( e, 20.0 )
MoveForward ( e, 20.0 )
end
end

The author of this post has marked a post as an answer.

Go to answer
PM
GoDevils
9
Years of Service
User Offline
Joined: 24th Sep 2014
Location: Arizona USA
Posted: 16th Apr 2021 01:15
Is the entity a character or a simple model?

If a model, make sure that the model is set to non static.

I just released a free movement control script MCS. What you want to do here can be set-up using this script.

Hope this helps

"THERE IS NO SPOON"

AMD 6300 6 core 3.5 ghz, Windows 10, 8GB ram, GTX 1060 2GB ram
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 16th Apr 2021 18:34 Edited at: 17th Apr 2021 07:20
it's an simple model, he turns but doesn't move Forward.
PM
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 17th Apr 2021 07:17
This post has been marked by the post author as the answer.
Now it works !

i must set CollisionOff(e) in this script
PM

Login to post a reply

Server time is: 2024-05-02 11:35:23
Your offset time is: 2024-05-02 11:35:23