Ped::setAiWeaponDamageModifier: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.ped.setAiWeaponDamageModifier(1.5);
</syntaxhighlight>
</syntaxhighlight>
This will change from 10 shots until that with normal pistol to 3 or 4 shots.
==See also==
==See also==
{{Ped_s_function_c}}
{{Ped_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 18:10, 28 July 2019

Syntax

mp.game.ped.setAiWeaponDamageModifier(value);

Required Arguments

  • value: float

Return value

  • Undefined

Example

mp.game.ped.setAiWeaponDamageModifier(1.5);

This will change from 10 shots until that with normal pistol to 3 or 4 shots.

See also