Ifspawnedby - EDukeWiki

# Ifspawnedby

From EDukeWiki

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.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Ifspawnedby&oldid=8060"
Categories:

- Duke3D 1.3/1.5 commands
- Sprite manipulation
- If conditions