Ifspawnedby
Jump to navigation
Jump to search
ifspawnedby <actor> { do something } else { do something else }
If condition returning true if the current actor was spawned by <actor>. If the actor wasn't spawned by any actor and was loaded by the map, the value takes his own tile number. This check no longer works properly after an actor has taken damage as the same memory location is reused to hold the tile number of whatever caused the damage. Therefore, this command is identical to ifwasweapon.