Set manualSpeed through Lua
Posted: Thu Feb 11, 2021 4:33 pm
I'm having trouble setting an air unit's manualSpeed with the ScenEdit_SetUnit function. Whenever I try to run a script setting an air unit or group's manualSpeed it seems to set the unit's manual speed to their Cruise speed instead. Am I missing something? is there some doctrine setting I need to uncheck or something else? When I try running this:
ScenEdit_SetUnit({guid = 'The Unit GUID', manualSpeed = 600})
it just sets the speed to the cruise speed. I've found other threads with examples of manualSpeed being changed in the SetUnit and I've tried with a decimal digit and as a string but it still isn't working for me.
It might be work noting I'm attempting this on Command Professional Edition.
ScenEdit_SetUnit({guid = 'The Unit GUID', manualSpeed = 600})
it just sets the speed to the cruise speed. I've found other threads with examples of manualSpeed being changed in the SetUnit and I've tried with a decimal digit and as a string but it still isn't working for me.
It might be work noting I'm attempting this on Command Professional Edition.