The switch to craft [0] instruction will change which craft the player is actively controlling. To use this you must specify the numeric id of the craft. if you know the name of the craft you can get the id from that (so for example if the craft is targeted, you get get its name then its id). You can also list all of the crafts around the planet if you want to try and identify it based on distance for example. Vizzy++ has an expression to get the ID of the target craft so you can skip the name->id conversion.
The
switch to craft [0]
instruction will change which craft the player is actively controlling. To use this you must specify the numeric id of the craft. if you know the name of the craft you can get the id from that (so for example if the craft is targeted, you get get its name then its id). You can also list all of the crafts around the planet if you want to try and identify it based on distance for example.Vizzy++ has an expression to get the ID of the target craft so you can skip the name->id conversion.