25.06.2018, 19:13
He created an actor and applied animation to them, that's all, YOUR PROBLEM is that when you move the actor from his position by a car for example, he doesn't TP back, You can easily avoid it with this..
forward a timer function somewhere in your script
When you create the actor set a time with him
and the response..
That's it.
forward a timer function somewhere in your script
PHP код:
forward actorcheck();
PHP код:
SetTimer(actorcheck, 1000, true);
PHP код:
public actorcheck()
{
new Float:X, Float:Y, Float:Z;
GetActorPos(actor, X, Y, Z);
if(X != your original X here || Y != your original Y here || Z != your original Z here)
{
SetActorPos(actor, your x, y, z);
ApplyActorAnimation(bla, bla, bla);
}
}