AI.plist scripting... wormholeGroup vs wormholeEscorts

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

AI.plist scripting... wormholeGroup vs wormholeEscorts

Post 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.
Post Reply