Player::taskSmartFlee

From RAGE Multiplayer Wiki

Makes a ped run away from another ped (fleeTarget).

distance = ped will flee this distance.
fleeTime = ped will flee for this amount of time, set to '-1' to flee forever

Syntax

player.taskSmartFlee(fleeTarget, distance, fleeTime, p4, p5);

Required Arguments

  • fleeTarget: Ped handle or object
  • distance: float
  • fleeTime: unknown (to be checked)
  • p4: Boolean
  • p5: Boolean

Return value

  • Undefined

Example

// todo

See also