Player::applyDamageTo: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 1: Line 1:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.applyDamageTo(damageAmount, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.applyDamageTo(damageAmount, withArmor);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''damageAmount:''' int
*'''damageAmount:''' int
*'''p2:''' Boolean
*'''withArmor:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Revision as of 11:20, 9 January 2023

Syntax

player.applyDamageTo(damageAmount, withArmor);

Required Arguments

  • damageAmount: int
  • withArmor: Boolean

Return value

  • Undefined

Example

// todo

See also