Player::setPlayerLockon: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Example from fm_mission_controler.ysc.c4:<br><br>PLAYER::SET_PLAYER_LOCKON(PLAYER::PLAYER_ID(), 1);<br><br>All other decompiled scripts using this seem to be using the player id as the first parameter, so I feel the need to confirm it as so.
Example from fm_mission_controler.ysc.c4:<br><br>PLAYER::SET_PLAYER_LOCKON(PLAYER::PLAYER_ID(), 1);<br><br>All other decompiled scripts using this seem to be using the player id as the first parameter, so I feel the need to confirm it as so.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setPlayerLockon(toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setPlayerLockon(toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:30, 6 May 2017

Example from fm_mission_controler.ysc.c4:

PLAYER::SET_PLAYER_LOCKON(PLAYER::PLAYER_ID(), 1);

All other decompiled scripts using this seem to be using the player id as the first parameter, so I feel the need to confirm it as so.

Syntax

mp.game.player.setPlayerLockon(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also