Quantcast

Jump to content

» «
Photo

Ped leave the area

1 reply to this topic
nordi
  • nordi

    Crackhead

  • Members
  • Joined: 17 Mar 2014
  • France

#1

Posted 24 August 2014 - 04:29 PM Edited by nordi, 24 August 2014 - 04:30 PM.

Hey

 

Does someone knows, how to get all the peds around the player, to leave the area ? I checked the natives, but none seems appropriate !

I found this native: TASK_SMART_FLEE_CHAR(Ped ped, Ped fleeFromPed, float unknown0_100, uint duration); but I don't think it would work !

thanks !


LetsPlayOrDy
  • LetsPlayOrDy

    So fast you'll freak!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#2

Posted 24 August 2014 - 04:34 PM

Would this work for you?

Ped[] pedsAroundMe = World.GetPeds(Game.LocalPlayer.Character.Position, 100.0f);
            foreach (Ped ped in pedsAroundMe)
            {
                ped.BlockPermanentEvents = false;
                ped.Task.ClearAll();
                ped.Task.GoTo(Player.Character.Position.Around(500.0f), false);
            }




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users