Performing actions in parallel with Cel Scripting

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
artism
Posts: 2
Joined: 08.05.2019
With us: 5 years 6 months

Performing actions in parallel with Cel Scripting

Post #1by artism » 08.05.2019, 09:23

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.

onetwothree
Site Admin
Posts: 706
Joined: 22.09.2018
With us: 6 years 1 month

Post #2by onetwothree » 09.05.2019, 19:54

No, cel scripting is very simple and performs actions one by one.

Janus
Posts: 537
Joined: 13.08.2016
With us: 8 years 3 months

Post #3by Janus » 11.05.2019, 20:35

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.

Topic author
artism
Posts: 2
Joined: 08.05.2019
With us: 5 years 6 months

Post #4by artism » 14.05.2019, 12:33

Hi all,
thank you for your replies.


Return to “Help Central”