Player::setPlayerWeaponDamageModifier: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown. <br><br>Based on tests, it is unlikely to be a multiplier.
This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown. <br><br>Based on tests, it is unlikely to be a multiplier.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setPlayerWeaponDamageModifier(damageAmount);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.setPlayerWeaponDamageModifier(damageAmount);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''damageAmount:''' float
*'''damageAmount:''' float
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:31, 6 May 2017

This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.

Based on tests, it is unlikely to be a multiplier.

Syntax

mp.game.player.setPlayerWeaponDamageModifier(damageAmount);

Required Arguments

  • damageAmount: float

Return value

  • Undefined

Example

// todo

See also