Editing SectorDamage
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
:Any other flags are reserved and must be avoided, because the behaviour may change in future Eternity versions. | :Any other flags are reserved and must be avoided, because the behaviour may change in future Eternity versions. | ||
|examples= | |examples= | ||
This will apply 15% damage to all players in sector(s) tagged 1, if they're not wearing a radiation suit, regardless if they're touching the floor or not. If any of them dies, they get the slime/nukage obituary | This will apply 15% damage to all players in sector(s) tagged 1, if they're not wearing a radiation suit, regardless if they're touching the floor or not. If any of them dies, they get the slime/nukage obituary. | ||
SectorDamage(1, 15, "Slime", "PowerIronFeet", DAMAGE_PLAYERS <nowiki>|</nowiki> DAMAGE_IN_AIR); | SectorDamage(1, 15, "Slime", "PowerIronFeet", DAMAGE_PLAYERS <nowiki>|</nowiki> DAMAGE_IN_AIR); | ||
|notes= | |notes= | ||
You need to set ''flags'' to at least '''DAMAGE_PLAYERS''' or '''DAMAGE_NONPLAYERS''', otherwise this function will have no effect. | You need to set ''flags'' to at least '''DAMAGE_PLAYERS''' or '''DAMAGE_NONPLAYERS''', otherwise this function will have no effect. | ||
Line 24: | Line 20: | ||
Beware that this will not damage things [[Thing type flags|flagged]] '''NOSECTOR'''. Use the '''DONTDRAW''' [[Thing type flags|thing type flag]] if you want such invisible things to be harmed by '''SectorDamage'''. | Beware that this will not damage things [[Thing type flags|flagged]] '''NOSECTOR'''. Use the '''DONTDRAW''' [[Thing type flags|thing type flag]] if you want such invisible things to be harmed by '''SectorDamage'''. | ||
This function only applies immediate damage. It does not turn the tagged sectors into continually damaging areas | This function only applies immediate damage. It does not turn the tagged sectors into continually damaging areas. | ||
|return=None. | |return=None. | ||
|id=ACC internal | |id=ACC internal | ||
|seealso= | |seealso= | ||
*[[SetSectorDamage]]}} | *[[SetSectorDamage]]}} |