icdb

[ArmA3] Add 3D compass to air vehicles

May 29th, 2020
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.77 KB | None | 0 0
  1. onEachFrame {
  2.   if (vehicle player isKindOf "Air") then {
  3.     {
  4.       _center = positionCameraToWorld [0,0,8];
  5.       _x params ["_letter", "_color", "_offset1", "_offset2"];
  6.       drawIcon3D [
  7.         "",
  8.         _color,
  9.         _center vectorAdd _offset1,
  10.         0,
  11.         0,
  12.         0,
  13.         _letter,
  14.         2,
  15.         0.05,
  16.         "PuristaMedium"
  17.       ];
  18.       drawIcon3D [
  19.         "",
  20.         _color,
  21.         _center vectorAdd _offset2,
  22.         0,
  23.         0,
  24.         0,
  25.         ".",
  26.         2,
  27.         0.05,
  28.         "PuristaMedium"
  29.       ];
  30.     } count [
  31.       ["N",[1,1,1,1],[0,1,0],[0,0.5,0]],
  32.       ["S",[1,1,1,0.7],[0,-1,0],[0,-0.5,0]],
  33.       ["E",[1,1,1,0.7],[1,0,0],[0.5,0,0]],
  34.       ["W",[1,1,1,0.7],[-1,0,0],[-0.5,0,0]]
  35.     ];
  36.   };
  37. };
Add Comment
Please, Sign In to add comment