- Messages
- 1,361
- Country

Hi Folks
Any suggestions/help/code would be much appreciated.
N.B.
Following examples only show RHS of variable assignments.
From looking at various mission's xml scripts
I can see data being extracted for use in calculations, e.g.
Above appears to be reading MaxTakeoffWeight
from the user-aircraft's staticproperties.spb file.
I'm trying to extract other data
from that same staticproperties.spb file, e.g.
Above always appears to return a zero/nil value.
My trigger code itself is working ok,
as I can fire my trigger correctly,
with a dirty workaround, by substituting -
Above returns 50 as a number, (i.e. for C-46, 50000 lbs MTOW / 1000).
Is my StallSpeedVs1 code incorrect,
or can varget() only utilise a limited selection of variables ?
If the latter, is there a list somewhere please ?
I'm guessing a translation table may possibly be involved,
as for example -
is saved to the user's online profile as - PassengersHappy
Many thanks
ATB
Paul
Any suggestions/help/code would be much appreciated.
N.B.
Following examples only show RHS of variable assignments.
From looking at various mission's xml scripts
I can see data being extracted for use in calculations, e.g.
Code:
varget('S:Performance.MaxTakeoffWeight', 'pounds')
from the user-aircraft's staticproperties.spb file.
I'm trying to extract other data
from that same staticproperties.spb file, e.g.
Code:
varget('S:Aerodynamics.StallSpeedVs1', 'knots')
My trigger code itself is working ok,
as I can fire my trigger correctly,
with a dirty workaround, by substituting -
Code:
(varget('S:Performance.MaxTakeoffWeight', 'pounds') / 1000 )
Is my StallSpeedVs1 code incorrect,
or can varget() only utilise a limited selection of variables ?
If the latter, is there a list somewhere please ?
I'm guessing a translation table may possibly be involved,
as for example -
Code:
increment_career_stat('TotalHappyPassengers', 2)
Many thanks
ATB
Paul


