Problem running a command on a ship

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
spudsman
Posts: 193
Joined: Fri, 30. Jul 04, 22:47
x3tc

Problem running a command on a ship

Post by spudsman »

I've written a script that I want to run on a TL owned by anyone, not just my own. When I run the script on one of my TL's, it runs fine. However, when I run the script on an AI TL (Argon, Boron, etc.), it begins to execute the first fly instruction "[THIS]->fly to station $shipyard", the AI TL begins to execute my command and then resumes !cmd.idle on task 0 with priority 0.

Is the fly instruction being interrupted? How can I run this script on an AI TL without it being suspended in favor of the TL drifting around like a lazy Argnu? Any help would be appreciated. Thanks.

edit:
Right, figured it out. I needed use the "set script command: <command>" instruction. Once I did this, my script was not interrupted anymore.

Return to “X²: The Threat - Scripts and Modding”