Htextra: Difference between revisions
Jump to navigation
Jump to search
Categories |
No edit summary |
||
Line 5: | Line 5: | ||
getactor[THISACTOR].htextra TEMP | getactor[THISACTOR].htextra TEMP | ||
sets TEMP to the amount of damage [[THISACTOR]] will take from the weapon currently hitting it. This amount can be modified before the actor actually takes any damage. | sets TEMP to the amount of damage [[THISACTOR]] will take from the weapon currently hitting it. This amount can be modified before the actor actually takes any damage. If you want to no damage be taken, set to -1, not 0. | ||
This can be used to decrease the amount of damage a certain actor get from certain weapon or enemy. ifhitweapon and ifdead seems to return if this value is positive. In other words, this can easily be used for an enemy takes damage, for example, in lava floors. | |||
[[Category:Sprite structure members]] | [[Category:Sprite structure members]] |
Revision as of 16:33, 26 November 2007
htextra is the amount of damage to be incurred by the weapon that is currently hitting the actor in question.
Example:
getactor[THISACTOR].htextra TEMP
sets TEMP to the amount of damage THISACTOR will take from the weapon currently hitting it. This amount can be modified before the actor actually takes any damage. If you want to no damage be taken, set to -1, not 0.
This can be used to decrease the amount of damage a certain actor get from certain weapon or enemy. ifhitweapon and ifdead seems to return if this value is positive. In other words, this can easily be used for an enemy takes damage, for example, in lava floors.