Перейти к содержанию

Player::getIsFreeAimingAt

Материал из RAGE MP Wiki Archive

Returns TRUE if it found an entity in your crosshair within range of your weapon. Assigns the handle of the target to the *entity that you pass it.
Returns false if no entity found.

Syntax

<syntaxhighlight lang="javascript">player.getIsFreeAimingAt(entity);</syntaxhighlight>

Required Arguments

  • entity: Entity handle or object

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also