Issue With Actors
#8

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
PHP код:
forward actorcheck(); 
When you create the actor set a time with him
PHP код:
SetTimer(actorcheck1000true); 
and the response..

PHP код:
public actorcheck()
{
     new 
Float:XFloat:YFloat:Z;
     
GetActorPos(actorXYZ);
     if(
!= your original X here || != your original Y here || != your original Z here)
     {
           
SetActorPos(actoryour xyz);
           
ApplyActorAnimation(blablabla);
     }

That's it.
Reply


Messages In This Thread
Issue With Actors - by Jay_Dixon - 25.06.2018, 17:46
Re: Issue With Actors - by JasonRiggs - 25.06.2018, 18:30
Re: Issue With Actors - by Jay_Dixon - 25.06.2018, 18:33
Re: Issue With Actors - by JasonRiggs - 25.06.2018, 18:40
Re: Issue With Actors - by Jay_Dixon - 25.06.2018, 18:42
Re: Issue With Actors - by JasonRiggs - 25.06.2018, 18:56
Re: Issue With Actors - by Jay_Dixon - 25.06.2018, 19:00
Re: Issue With Actors - by JasonRiggs - 25.06.2018, 19:13
Re: Issue With Actors - by Jay_Dixon - 25.06.2018, 19:35
Re: Issue With Actors - by Dayrion - 25.06.2018, 21:01

Forum Jump:


Users browsing this thread: 2 Guest(s)