BIS fnc dirIndicator: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[Script.+) * +\|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2oa | |game1= arma2oa | ||
|1.56 | |version1= 1.56 | ||
|game2= tkoh | |game2= tkoh | ||
Line 16: | Line 16: | ||
|eff= local | |eff= local | ||
| Show a 4-directions indicator.<br> | |descr= Show a 4-directions indicator.<br> | ||
Indicator GUI layer is 17, its [[Display]] is accessible with {{ic|[[uiNamespace]] [[getVariable]] "BIS_RscMissionScreen_dirIndicator"}}.<br> | Indicator GUI layer is 17, its [[Display]] is accessible with {{ic|[[uiNamespace]] [[getVariable]] "BIS_RscMissionScreen_dirIndicator"}}.<br> | ||
Can be reexecuted to change its colour, but once executed this function '''cannot''' be halted until ''origin''<nowiki>' | Can be reexecuted to change its colour, but once executed this function '''cannot''' be halted until ''origin''<nowiki/>'s death. | ||
|s1=[origin, target, color, sizeCoef] call [[BIS_fnc_dirIndicator]] | |s1= [origin, target, color, sizeCoef] call [[BIS_fnc_dirIndicator]] | ||
|p1= origin: [[Object]] - origin, usually [[player]] | |p1= origin: [[Object]] - origin, usually [[player]] | ||
Line 37: | Line 37: | ||
|x1= <code><nowiki>[</nowiki>[[player]], TheBoss, [0.706, 0.0745, 0.0196, 1]] [[call]] [[BIS_fnc_dirIndicator]];</code> | |x1= <code><nowiki>[</nowiki>[[player]], TheBoss, [0.706, 0.0745, 0.0196, 1]] [[call]] [[BIS_fnc_dirIndicator]];</code> | ||
|seealso= | |||
}} | }} | ||
Revision as of 04:36, 13 June 2021
Description
- Description:
- Show a 4-directions indicator.
Indicator GUI layer is 17, its Display is accessible withuiNamespace getVariable "BIS_RscMissionScreen_dirIndicator"
.
Can be reexecuted to change its colour, but once executed this function cannot be halted until origin's death. - Execution:
- call
- Groups:
- GUI
Syntax
- Syntax:
- [origin, target, color, sizeCoef] call BIS_fnc_dirIndicator
- Parameters:
- origin: Object - origin, usually player
- target: Code, String, Object or Position - to which indicator points to:
- color: Color (RGBA) - (Optional, default [0.424,0.651,0.247,1] (Arma 2 green))
- sizeCoef: Number - (Optional, default 0.1045752 (command bar height)) size coefficient
- Return Value:
- Script handle
Examples
- Example 1:
[player, TheBoss, [0.706, 0.0745, 0.0196, 1]] call BIS_fnc_dirIndicator;
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note