{"name":"BIS_fnc_dirIndicator","operator":null,"title":"BIS fnc dirIndicator","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_dirIndicator","revid":329960,"updated":"2022-08-09T17:17:13Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.56"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.56"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Show a 4-directions indicator.\n\nIndicator GUI layer is 17, its Display is accessible with `uiNamespace getVariable \"BIS_RscMissionScreen_dirIndicator\"`.\n\nCan be reexecuted to change its colour, but once executed this function **cannot** be halted  until *origin*'s death.","syntaxes":[{"syntax":"[origin, target, color, sizeCoef] call BIS_fnc_dirIndicator","since":null,"effect":null,"exec":null,"params":[{"name":"origin","type":"Object","optional":false,"default":null,"description":"origin, usually player","types":["Object"],"since":null,"text":"origin: Object - origin, usually player"},{"name":"target","type":"Code, String, Object or Array format Position","optional":false,"default":null,"description":"to which indicator points to:\n- Code - code result must be Object or Position\n- String - missionNamespace variable name\n- Object - any object\n- Array format Position - any position","types":["Code","String","Object","Array","Position"],"since":null,"text":"target: Code, String, Object or Array format Position - to which indicator points to:\n- Code - code result must be Object or Position\n- String - missionNamespace variable name\n- Object - any object\n- Array format Position - any position"},{"name":"color","type":"Array format Color (RGBA)","optional":true,"default":"[0.424,0.651,0.247,1] (Arma 2 green)","description":null,"types":["Array","Color"],"since":null,"text":"color: Array format Color (RGBA) - (Optional, default [0.424,0.651,0.247,1] (Arma 2 green))"},{"name":"sizeCoef","type":"Number","optional":true,"default":"0.1045752 (command bar height)","description":"size coefficient","types":["Number"],"since":null,"text":"sizeCoef: Number - (Optional, default 0.1045752 (command bar height)) size coefficient"}],"returns":{"type":"Script Handle","types":["Script Handle"],"description":null,"text":"Script Handle"}}],"examples":[{"text":"```sqf\n[player, TheBoss, [0.706, 0.0745, 0.0196, 1]] call BIS_fnc_dirIndicator;\n```","code":["[player, TheBoss, [0.706, 0.0745, 0.0196, 1]] call BIS_fnc_dirIndicator;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getRelDir"],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: GUI","Functions","Functions: Local Effect","Introduced with Arma 2: Operation Arrowhead version 1.56","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}