SA-MP Forums Archive
Why can not actor walk? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why can not actor walk? (/showthread.php?tid=572829)



Why can not actor walk? - LikeNPC - 02.05.2015

Video

https://www.youtube.com/watch?v=peUw...ature=*********

Fixed?


Re: Why can not actor walk? - ZiGGi - 02.05.2015

https://forum.sa-mp.com/showpost.php...postcount=1083


Re: Why can not actor walk? - Patrik356b - 02.05.2015

If you are really desperate about this, you could set a walk/run animation and use SetActorPos with a repeating function. Though, this will look very choppy/laggy.


Re: Why can not actor walk? - Crayder - 02.05.2015

Well in this case you just have the anim's x and y locked. But walking will not be synced, keep that in mind.

Quote:
Originally Posted by Patrik356b
View Post
If you are really desperate about this, you could set a walk/run animation and use SetActorPos with a repeating function. Though, this will look very choppy/laggy.
If I were to go in depth with walking I'd do exactly this, the only problem is detecting walls/slopes (which I can do with ColAndreas).


Re: Why can not actor walk? - Emmet_ - 02.05.2015

Actors were designed to remain stationary (think of a shop bot). They are unable to walk because it cannot be synced to other players.

You'll have to use a 3rd party plugin such as FCNPC or RNPC to achieve this effect.