Page 1 of 1

Performing actions in parallel with Cel Scripting

Posted: 08.05.2019, 09:23
by artism
Hello,
I newly discovered Celestia and I would like to write some Cel scripts.
Commands looks pretty straight forward (even if results are sometimes unexpected) which is really nice for a non programmer like me !

I was wondering if it is possible to perform several commands in parallel ?
For example : go to a certain location on earth (gotoloc command) and in the "middle of the move" (after x seconds) apply some new surfaces (setsurface command).
I can perform one action after the other but not really in parallel.
Is there any way to start several actions and put some of them in background ?

Thanks in advance.

Posted: 09.05.2019, 19:54
by onetwothree
No, cel scripting is very simple and performs actions one by one.

Posted: 11.05.2019, 20:35
by Janus
Celx is based on Lua, which is without a lot of work, purely linear.
In Celestia, it is purely linear, however, you can write your own calls.

You can write your own travel/move command with an optional parameter to change or update the texture of the target or selected object if you like.


Janus.

Posted: 14.05.2019, 12:33
by artism
Hi all,
thank you for your replies.