Player::setPlayerTargetingMode: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
(One intermediate revision by the same user not shown)
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).
0 = Traditional GTA
1 = Assisted Aiming
2 = Free Aim
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.player.setPlayerTargetingMode(targetMode);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setTargetingMode(targetMode);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''targetMode:''' int
*'''targetMode:''' int
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Latest revision as of 09:34, 10 March 2018

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).

0 = Traditional GTA 1 = Assisted Aiming 2 = Free Aim

Syntax

mp.game.player.setTargetingMode(targetMode);

Required Arguments

  • targetMode: int

Return value

  • Undefined

Example

// todo

See also