Bot + RunAnim
#1

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 ?!
Reply
#2

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^^
Reply
#3

No, i can :P

Normal Anims work fine
Reply
#4

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.
Reply
#5

Can i make some solution about it ?

*got-idea* Prob. using SetPlayerVelocity ?
Reply
#6

Record the NPC route when you have the anim applied
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)