Adjust balloon position on sim-reset
It's annoying when balloons appear exactly at the current a/c position on sim reset, since the a/c gets knocked over etc. (Balloon scenario still won't work properly after a sim-reset, so another fix is required...).
This commit is contained in:
parent
73435766aa
commit
ac46479d0a
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ _setlistener("/sim/signals/fdm-initialized", func {
|
|||
var callsign = tanker.getNode("callsign").getValue();
|
||||
if( callsign == nil ) continue;
|
||||
if( string.match(callsign,"ballon*") ) {
|
||||
tanker.getNode("position/latitude-deg",1).setDoubleValue( position.lat() );
|
||||
tanker.getNode("position/longitude-deg",1).setDoubleValue( position.lon() );
|
||||
tanker.getNode("position/latitude-deg",1).setDoubleValue( position.lat() - 0.002 );
|
||||
tanker.getNode("position/longitude-deg",1).setDoubleValue( position.lon() - 0.002 );
|
||||
tanker.getNode("position/altitude-ft", 1 ).setDoubleValue( position.alt() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue