Player::taskGotoAiming

From RAGE Multiplayer Wiki

eg

Player::TASK_GOTO_ENTITY_AIMING(v_2, PLAYER::PLAYER_Player_ID(), 5.0, 25.0);

ped = Ped you want to perform this task.
target = the Entity they should aim at.
distanceToStopAt = distance from the target, where the ped should stop to aim.
StartAimingDist = distance where the ped should start to aim.

Syntax

player.taskGotoAiming(target, distanceToStopAt, StartAimingDist);

Required Arguments

  • target: Entity handle or object
  • distanceToStopAt: float
  • StartAimingDist: float

Return value

  • Undefined

Example

// todo

See also