damage: Difference between revisions
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!!" |