Get the direction of any unit’s head.
This can be used on any character model provided it has the “neck” and “pilot” mem points defined in the model.
This works for proxy models as well!
_unit | Unit to check [Object] |
[<NUMBER>, <NUMBER>, <NUMBER>]
_data = [object] call CBA_fnc_headDir; // => returns direction of objects head
Check for mem points. Make sure that it doesn’t throw an RPT error if executed pre-init/during init
Model must contain the needed mempoints for the calculations to work. This should not be an issue for any ArmA2 models, but I can not guarantee it will work on all models all the time. Until there is a way to test for that it should be used with some caution and if you are getting invalid results then revert to the older method of CBA_fnc_headDir.
Nou