SA-MP Forums Archive
Bot + RunAnim - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bot + RunAnim (/showthread.php?tid=96500)



Bot + RunAnim - Trooper[Y] - 08.09.2009

If i try to give a bot an anim for running (like
Quote:

"ped" - "run_civi"

with this parameters
Код:
ApplyAnimation(botid,"PED","run_civi",4.1,1,1,1,1,1);
the bot starts to run, but he... "laggs".

So it looks like if "lockx" & "locky" were 0, so it get reset after ~1 sec to the old position.

How can i disable this ?!


Re: Bot + RunAnim - saiberfun - 08.09.2009

Quote:
Originally Posted by Trooper[Y
]
If i try to give a bot an anim for running (like
Quote:

"ped" - "run_civi"

with this parameters
Код:
ApplyAnimation(botid,"PED","run_civi",4.1,1,1,1,1,1);
the bot starts to run, but he... "laggs".

So it looks like if "lockx" & "locky" were 0, so it get reset after ~1 sec to the old position.

How can i disable this ?!
i sdont think u can use this for bots because they only follow the .rec files and setposition i guess.
nut im not quiet sure^^


Re: Bot + RunAnim - Trooper[Y] - 08.09.2009

No, i can :P

Normal Anims work fine


Re: Bot + RunAnim - Balon - 08.09.2009

Yes. Animations which doesn't change the player position works fine. But those which change position will not make the NPC move, he'll be getting back to his position.


Re: Bot + RunAnim - Trooper[Y] - 08.09.2009

Can i make some solution about it ?

*got-idea* Prob. using SetPlayerVelocity ?


Re: Bot + RunAnim - Whiteagle - 09.09.2009

Record the NPC route when you have the anim applied


Re: Bot + RunAnim - Trooper[Y] - 10.09.2009

i want to have him run variabel.
If i record a route, its just in a little area...