Player::setPlayerTargetingMode: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
I don't know which number is which mode I'm sure it can easily be found with testing, but scripts showed it's not player. They ask a function which returns this Global (Global_2404048) on in the Xbox360 scripts, then sets the param to either, (0, 1, 2, or 3).
I don't know which number is which mode I'm sure it can easily be found with testing, but scripts showed it's not player. They ask a function which returns this Global (Global_2404048) on in the Xbox360 scripts, then sets the param to either, (0, 1, 2, or 3).
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setPlayerTargetingMode(targetMode);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setPlayerTargetingMode(targetMode);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''targetMode:''' int
*'''targetMode:''' int
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]]

Revision as of 21:30, 6 May 2017

I don't know which number is which mode I'm sure it can easily be found with testing, but scripts showed it's not player. They ask a function which returns this Global (Global_2404048) on in the Xbox360 scripts, then sets the param to either, (0, 1, 2, or 3).

Syntax

mp.game.player.setPlayerTargetingMode(targetMode);

Required Arguments

  • targetMode: int

Return value

  • Undefined

Example

// todo

See also