Difference between revisions of "DCS func getDrawArgumentValue"
From DCS World Wiki - Hoggitworld.com
Line 36: | Line 36: | ||
|optType2= | |optType2= | ||
− | |examples= | + | |examples= When checking the Huey |
+ | |||
+ | local u = Unit.getByName('whoopwhoop') | ||
+ | if u:getDrawArgument(43) == 1 then | ||
+ | -- left gunner door open | ||
+ | else | ||
+ | -- left gunner door closed | ||
+ | end | ||
+ | |||
|related= [[DCS_Class_Unit|'''Unit Functions:''']] {{listOfScriptingUnitFuncs}} | |related= [[DCS_Class_Unit|'''Unit Functions:''']] {{listOfScriptingUnitFuncs}} |