Page 1 of 1

SetUnit({guid=XXXX speed=YYY})

Posted: Fri Oct 02, 2020 4:25 pm
by SeaQueen
I'm trying to sequence some aircraft and I'd like to change their speed. Theoretically that ought to be easy to do using the SetUnit() function, but for some reason it's not accepting the speed I'm telling them to have. Has anyone had any trouble with that?

RE: SetUnit({guid=XXXX speed=YYY})

Posted: Fri Oct 02, 2020 7:13 pm
by michaelm75au
You would need to use manualSpeed to set the speed as if in manual override mode. The 'speed' in the function is the unit current speed and would be changed as game runs.
ScenEdit_SetUnit({Side ='Germany', Name = 'S 172', ManualSpeed=8})

RE: SetUnit({guid=XXXX speed=YYY})

Posted: Mon Oct 05, 2020 12:30 pm
by SeaQueen
Doh!