Weapon::getWeaponDamageType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
0=unknown (or incorrect weaponHash)<br>1= no damage (flare,snowball, petrolcan)<br>2=melee<br>3=bullet<br>4=force ragdoll fall<br>5=explosive (RPG, Railgun, grenade)<br>6=fire(molotov)<br>8=fall(WEAPON_HELI_CRASH)<br>10=electric<br>11=barbed wire<br>12=extinguisher<br>13=gas<br>14=water cannon(WEAPON_HIT_BY_WATER_CANNON)
0=unknown (or incorrect weaponHash)<br>1= no damage (flare,snowball, petrolcan)<br>2=melee<br>3=bullet<br>4=force ragdoll fall<br>5=explosive (RPG, Railgun, grenade)<br>6=fire(molotov)<br>8=fall(WEAPON_HELI_CRASH)<br>10=electric<br>11=barbed wire<br>12=extinguisher<br>13=gas<br>14=water cannon(WEAPON_HIT_BY_WATER_CANNON)
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.getWeaponDamageType(weaponHash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.getWeaponDamageType(weaponHash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''weaponHash:''' Model hash or name
*'''weaponHash:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Weapon_function_c}}
{{Weapon_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:35, 6 May 2017

0=unknown (or incorrect weaponHash)
1= no damage (flare,snowball, petrolcan)
2=melee
3=bullet
4=force ragdoll fall
5=explosive (RPG, Railgun, grenade)
6=fire(molotov)
8=fall(WEAPON_HELI_CRASH)
10=electric
11=barbed wire
12=extinguisher
13=gas
14=water cannon(WEAPON_HIT_BY_WATER_CANNON)

Syntax

mp.game.weapon.getWeaponDamageType(weaponHash);

Required Arguments

  • weaponHash: Model hash or name

Return value

  • int

Example

// todo

See also