Actors bug
#12

Check the distance between the player and the actor OnPlayerUpdate, for example:
pawn Код:
public OnPlayerUpdate(playerid)
{
  new Float:X,Float:Y,Float:Z;

  for(new i = 0; i < MAX_ACTORS; i ++)
  {
    GetActorPos(i,X,Y,Z);
    if(IsPlayerInRangeOfPoint(playerid,5.0,X,Y,Z))
    {
    ResyncActor(i);
    }
  }
  return 1;
}
this should work.
Reply


Messages In This Thread
Actors bug - by zamaleksc - 16.01.2016, 17:42
Re: Actors bug - by Eth - 16.01.2016, 17:53
Re: Actors bug - by zamaleksc - 16.01.2016, 17:54
Re: Actors bug - by Eth - 16.01.2016, 17:57
Re: Actors bug - by zamaleksc - 16.01.2016, 17:59
Re: Actors bug - by Eth - 16.01.2016, 18:03
Re: Actors bug - by zamaleksc - 16.01.2016, 18:06
Re: Actors bug - by Eth - 16.01.2016, 18:07
Re: Actors bug - by zamaleksc - 16.01.2016, 18:11
Re: Actors bug - by -CaRRoT - 16.01.2016, 18:14
Re: Actors bug - by zamaleksc - 16.01.2016, 18:18
Re: Actors bug - by Eth - 16.01.2016, 18:23
Re: Actors bug - by zamaleksc - 16.01.2016, 18:52
Re: Actors bug - by Eth - 16.01.2016, 18:56

Forum Jump:


Users browsing this thread: 7 Guest(s)