Page 1 of 1

Number of satellite sent ?

Posted: Wed Mar 09, 2016 1:33 pm
by binbinhfr
Hi,

I'd like to get the number of sattelites sent (the one displayed in the score frame).
I saw an interesting variable global.satellite_sent[force.name] in \data\base\scenarios\freeplay\control.lua
but I wonder how I can read this variable from my mod ?

Thanks for your help.

Re: Number of satellite sent ?

Posted: Wed Mar 09, 2016 1:41 pm
by prg
Seems like the freeplay scenario doesn't add a remote interface for that, but you can still get at the value via some player's gui.left.rocket_score.rocket_count.caption.

Re: Number of satellite sent ?

Posted: Wed Mar 09, 2016 2:28 pm
by binbinhfr
yes you're right ! :-)