{"name":"BIS_fnc_dirIndicator","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","games":{"arma2oa":"1.56","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.56","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Show a 4-directions indicator.\nIndicator GUI layer is 17, its Display is accessible with `uiNamespace getVariable \"BIS_RscMissionScreen_dirIndicator\"`.\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","params":[{"name":"origin","type":"Object","description":"origin, usually player","type_expr":"Object"},{"name":"target","type":"Code, String, Object or Array format Position","description":"to which indicator points to:\n\n- Code - code result must be Object or Position\n- String - missionNamespace variable name\n- Object - any object\n- Array format Position - any position","type_expr":"Code | String | Object | Position","types":["Code","String","Object","Array","Position"]},{"name":"color","type":"Array format Color (RGBA)","optional":true,"default":"[0.424,0.651,0.247,1] (Arma 2 green)","type_expr":"Color","types":["Array","Color"],"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","type_expr":"Number","text":"sizeCoef: Number - (Optional, default 0.1045752 (command bar height)) size coefficient"}],"returns":{"type":"Script Handle","type_expr":"Script Handle"}}],"examples":[{"code":["[player, TheBoss, [0.706, 0.0745, 0.0196, 1]] call BIS_fnc_dirIndicator;"]}],"see_also":["getRelDir"]}