by Ethril » Fri Oct 11, 2013 1:39 am
(shouldn't it be AAPTR_CHILDREN?)
I would've guessed it to mean
ALL OF THEM "everything that refers to the calling actor as master"
You could do some cool stuff with that... e.g. a boss, in its pain state, gives its spawns an item that triggers them to teleport randomly around it as a shield, or one of its attacks signaling them to self-destruct, or something.
I mean, we have A_Damage/Kill/Raise/RemoveChildren, so there's apparently some way for an actor to tell which actors are its "children" and then do something to them.
(similarly,
AAPTR_SIBLING would look for anything with the same master)
[size=70](shouldn't it be AAPTR_CHILDREN?)[/size]
I would've guessed it to mean [s]ALL OF THEM[/s] "everything that refers to the calling actor as master"
You could do some cool stuff with that... e.g. a boss, in its pain state, gives its spawns an item that triggers them to teleport randomly around it as a shield, or one of its attacks signaling them to self-destruct, or something.
I mean, we have A_Damage/Kill/Raise/RemoveChildren, so there's apparently some way for an actor to tell which actors are its "children" and then do something to them.
(similarly, [url=http://forum.zdoom.org/viewtopic.php?f=18&t=37517]AAPTR_SIBLING[/url] would look for anything with the same master)