SDK Question Thruster index

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
I want to identify by handle, which thrusters are operating in a given situation.

What is the thruster index constructed from ?
Are they numbered in the order they're created initially ?

The info in the scenario is for example
PHP:
THLEVEL 0:1.000000 1:1.000000 7:0.250666 8:0.311333 9:0.050286 12:0.050286 13:0.311333 14:0.250666

Can I display an active thruster handle using sprintf(oapiDebugString(),"........ somehow ?
 
Last edited:

Hlynkacg

Aspiring rocket scientist
Addon Developer
Tutorial Publisher
Donator
Joined
Dec 27, 2010
Messages
1,870
Reaction score
3
Points
0
Location
San Diego
Are they numbered in the order they're created initially ?

Yes they are. Likewise for propellant handles.

I'm not sure what you mean by display in this context though. The answer will depend on precisely what you're trying to display and whether you're doing it from within the vessel's code or via an external module or MFD.
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
From within the code, so I can see which thrusters are firing
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,842
Reaction score
2,105
Points
203
Location
between the planets
Then you can just use GetThrusterLevel, it takes the handle. I'm not quite sure what you'd want to use the index for.
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
I suppose that was just too simple :lol:
Thanks Hlynkacg
 
Top