Frag Posted October 19, 2018 Posted October 19, 2018 Hi guys, I am checking out in Moose how to get the bank value of the player aircraft ... So I can get the group and the unit like that ... local gpPlayer = GROUP:FindByName("player") local uPlayer = UNIT:FindByName("player") I can also find the speed like this: local speed = uPlayer:GetVelocityKMH() But how can I get its roll(bank) value? I saw that in the documentation: POSITIONABLE:GetRoll() Returns the roll angle of a unit. Defined in: POSITIONABLE Return value: But I have no clue how to do this and I did not find any traces of GetRoll in the moose code. It's probably trivial for you guys but can't figure this one out...
funkyfranky Posted October 20, 2018 Posted October 20, 2018 It's basically the same as the velocity. Just do local uPlayer = UNIT:FindByName("player") local roll = uPlayer:GetRoll() local yaw = uPlayer:GetYaw() local aoa = uPlayer:GetAoA() local pitch = uPlayer:GetPitch() Angles are returned in degrees. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Recommended Posts