DCS func getDrawArgumentValue: Difference between revisions
From DCS World Wiki - Hoggitworld.com
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
For example you can determine the rotation and orientation of the barrel of a Tanks cannon by checking its animation arguments. More practically you can determine whether or not a helicopters doors are open. | For example you can determine the rotation and orientation of the barrel of a Tanks cannon by checking its animation arguments. More practically you can determine whether or not a helicopters doors are open. | ||
If draw argument value is invalid for the unit in question a value of 0 will be returned. | |||
|rtnType= number | |rtnType= number | ||
| Line 39: | Line 41: | ||
local u = Unit.getByName('whoopwhoop') | local u = Unit.getByName('whoopwhoop') | ||
if u: | if u:getDrawArgumentValue(43) == 1 then | ||
-- left gunner door open | -- left gunner door open | ||
else | else | ||
| Line 54: | Line 56: | ||
}} | }} | ||
[[Category:Class Functions|getDrawArgumentValue]] | [[Category:Class Functions|getDrawArgumentValue]] | ||
[[Category:Game Patch 1.2.0|getDrawArgumentValue]] | |||
