Difference between revisions of "0118"
Jump to navigation
Jump to search
m |
m |
||
Line 8: | Line 8: | ||
}} | }} | ||
− | This opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to [[00A2]]. | + | This conditional opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to [[00A2]]. |
== Keywords == | == Keywords == |
Latest revision as of 16:35, 4 June 2016
- Description
- Checks if the character is dead
- Syntax
- 0118: actor [char handle] dead
- Parameter
- [char handle]
- The handle of the character
This conditional opcode returns true if the character is dead, which happens when its health reaches 0. It also returns true if the character does not exist, which is extremely useful to check in order to prevent unnecessary game crashes when using other opcodes that require the existence of the character. In GTA III, it behaves exactly opposite to 00A2.
Keywords
check, character, actor, alive, dead, exist
See also
- 0117, checks if the player is dead