Player::applyDamagePack: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 9: Line 9:
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
Adds bloody wounds to the player
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
player.applyDamagePack("Explosion_Large", 100, 1);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 12:32, 17 June 2020

Damage Packs:

'SCR_TrevorTreeBang'
'HOSPITAL_0'
'HOSPITAL_1'
'HOSPITAL_2'
'HOSPITAL_3'
'HOSPITAL_4'
'HOSPITAL_5'
'HOSPITAL_6'
'HOSPITAL_7'
'HOSPITAL_8'
'HOSPITAL_9'
'SCR_Dumpster'
'BigHitByVehicle'
'SCR_Finale_Michael_Face'
'SCR_Franklin_finb'
'SCR_Finale_Michael'
'SCR_Franklin_finb2'
'Explosion_Med'
'SCR_Torture'
'SCR_TracySplash'
'Skin_Melee_0'

Additional damage packs:

gist.github.com/alexguirre/f3f47f75ddcf617f416f3c8a55ae2227

Syntax

player.applyDamagePack(damagePack, damage, mult);

Required Arguments

  • damagePack: String
  • damage: float
  • mult: float

Return value

  • Undefined

Example

Adds bloody wounds to the player

player.applyDamagePack("Explosion_Large", 100, 1);

See also