So whats the thing about command and commandaction?

The place to discuss scripting and game modifications for X4: Foundations.

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

Post Reply
djfhe
Posts: 10
Joined: Tue, 23. Apr 13, 15:07
x4

So whats the thing about command and commandaction?

Post by djfhe » Thu, 31. Jan 19, 19:54

I know that i need them somehow if i call a other script inside mine one, but what exactly are they doing?
I see them a lot, are they saving smth. like the state of the script, before it calls the other one? I have no clue honestly.

Clownmug
Posts: 418
Joined: Wed, 11. Dec 13, 02:39
x4

Re: So whats the thing about command and commandaction?

Post by Clownmug » Thu, 31. Jan 19, 20:49

They're providing information for the UI. For example, when you target a friendly/scanned ship and look at the info screen you may see something like "Trading" or "Patrolling" which would be the command. Under that command it might say something else like "Dock at Energy Fab" or "Attacking Xenon P", which is the commandaction.

djfhe
Posts: 10
Joined: Tue, 23. Apr 13, 15:07
x4

Re: So whats the thing about command and commandaction?

Post by djfhe » Thu, 31. Jan 19, 21:21

ha okey thank you very much.
Its pretty hard to get into X4 modding in my opinion, mainly because i cant find any in-depth documentation.

Post Reply

Return to “X4: Foundations - Scripts and Modding”