Hey thanks for that, I was hoping to avoid having to name the plane or use init fields so I tried your local variable option and it seems to work fine.
The script isnt actually for a mission, its for a plane addon I'm making.
I thought I would incorporate an eject script for a bit of fun. ;D
Since a human player is always considered dead when the plane gets to a certain amount of damage, but the ai survives and is able to eject, I didnt think this was very fair.
Hopefully it will be a bit of fun for single and multiplayer levels. (If it does work multiplayer).
I tested with 2 planes, me + ai gunner in one & ai pilot + ai gunner in another and it worked fine, so hopefully it will work multiplayer.
Thanks again!