Activity Posted July 6, 2021 Share Posted July 6, 2021 Hi There, I'm struggling to get certain values for certain animations on the f14 using Unit.getDrawArgumentValue(). I'm getting the animation IDs using the model viewer but I'm experiencing some inconsistencies. Certain IDs like 0 for nose gear work fine. But then others, such as 21 for speedbrake return 0 regardless of animation state. My end goal is to see if I could use the lantirn animation state to calculate (roughly) where the lantirn is pointed, any ideas/tips? Thanks! Link to comment Share on other sites More sharing options...
Riddick Posted October 13, 2023 Share Posted October 13, 2023 The function getDrawArgumentValue() is used only to find out the state of an element of the external model of the aircraft. For example, to find out the degree of opening of the canopy for the TF-51D, you need to write: local myUnit = Unit.getByName("PlaneDriver") local CanopyState = myUnit:getDrawArgumentValue(38) But I have another problem. I need to know the condition of the cold air supply valve to the cabin. Apparently some other function is needed for this. But which one? Link to comment Share on other sites More sharing options...
Recommended Posts