damage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#D|COMREF]]
<h2 style="color:#000066">'''damage ''anything'''''</h2>
<h2 style="color:#000066">'''damage ''anything'''''</h2>


'''Operand types:'''
'''Operand types:'''


object: [[Object]]
'''object:''' [[Object]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 13: Line 16:
Object damage in range 0 to 1.
Object damage in range 0 to 1.


''Note:'' This function is identical to [[getDammage]].
'''Note:''' This function is identical to [[getDammage]].
 


'''Example:'''
'''Example:'''


? (('''damage''' player) > 0.3) : hint "Ouch!!"
? (('''damage''' [[player]]) > 0.3) : [[hint]] "Ouch!!"

Revision as of 11:52, 16 April 2006

back to COMREF

damage anything


Operand types:

object: Object

Type of returned value:

Number

Description:

Object damage in range 0 to 1.

Note: This function is identical to getDammage.


Example:

? ((damage player) > 0.3) : hint "Ouch!!"