Player::isFreeAiming: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 6: Line 6:
*'''Boolean'''
*'''Boolean'''
==Example==
==Example==
Outputs the current "FreeAiming" state into the chatbox
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let freeAiming = mp.game.player.isFreeAiming();
mp.gui.chat.push("Freeaiming is " + (freeAiming ? "active" : "inactive"))
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 14:25, 5 August 2018

Gets a value indicating whether the specified player is currently aiming freely.

Syntax

player.isFreeAiming();

Required Arguments

Return value

  • Boolean

Example

Outputs the current "FreeAiming" state into the chatbox

let freeAiming = mp.game.player.isFreeAiming();
mp.gui.chat.push("Freeaiming is " + (freeAiming ? "active" : "inactive"))

See also