Page 1 of 1

AI.plist scripting... wormholeGroup vs wormholeEscorts

Posted: Mon Jul 11, 2011 11:24 pm
by Switeck
Is it ok to just use wormholeGroup and count on escorts to be members of the group, or is it better/best to do:
"WITCHSPACE OKAY" = (wormholeEscorts, wormholeGroup);
...to catch BOTH escorts and other group members?

How does wormholeGroup differ from wormholeEntireGroup ?
wormholeEntireGroup gets all ships in the same group even if the ship calling this via its AI.plist is NOT the leader?

In the past, I've had problems with these...especially since I was trying to call them after the mothership used enterTargetWormhole (reusing another ship's wormhole) instead of performHyperSpaceExit (to make its own wormhole). I realize that's a mistake now because "WITCHSPACE OKAY" apparently only applies after performHyperSpaceExit has been called. :(

enterTargetWormhole also caused random disappearing ships in the past -- they wouldn't move towards the wormhole, they'd just disappear from where they are. I can understand enterPlayerWormhole causing that behavior, because in that case the player already left and won't see the animations (or lack) anyway.