BIS fnc dirIndicator: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 18: Line 18:
| [origin, target, color, sizeCoef] call [[BIS_fnc_dirIndicator]]  |SYNTAX=
| [origin, target, color, sizeCoef] call [[BIS_fnc_dirIndicator]]  |SYNTAX=


|p1= origin: [[Object]] - origin, usually [[player]] |= Parameter 1
|p1= origin: [[Object]] - origin, usually [[player]] |PARAMETER1=


|p2= target: [[Code]], [[String]], [[Object]] or [[Position]] - to which indicator points to:
|p2= target: [[Code]], [[String]], [[Object]] or [[Position]] - to which indicator points to:
Line 24: Line 24:
* [[String]] - [[missionNamespace]] variable name
* [[String]] - [[missionNamespace]] variable name
* [[Object]] - any object
* [[Object]] - any object
* [[Position]] - any position |= Parameter 2
* [[Position]] - any position |PARAMETER2=


|p3= color: [[Color]] - (Optional, default [0.424,0.651,0.247,1] ({{arma2}} green)) |= Parameter 3
|p3= color: [[Color]] - (Optional, default [0.424,0.651,0.247,1] ({{arma2}} green)) |PARAMETER3=


|p4= sizeCoef: [[Number]] - (Optional, default 0.1045752 (command bar height)) size coefficient |= Parameter 4
|p4= sizeCoef: [[Number]] - (Optional, default 0.1045752 (command bar height)) size coefficient |PARAMETER4=


| [[Script_(Handle)|Script handle]] |RETURNVALUE=
| [[Script_(Handle)|Script handle]] |RETURNVALUE=


|x1= <code><nowiki>[</nowiki>[[player]], TheBoss, [0.706, 0.0745, 0.0196, 1]] [[call]] [[BIS_fnc_dirIndicator]];</code>|= Example 1
|x1= <code><nowiki>[</nowiki>[[player]], TheBoss, [0.706, 0.0745, 0.0196, 1]] [[call]] [[BIS_fnc_dirIndicator]];</code>|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:29, 7 April 2019

-wrong parameter ("globargument") defined!-LELocal
Hover & click on the images for description

Description

Description:
Show a 4-directions indicator.
Indicator GUI layer is 17, its Display is accessible with uiNamespace 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:
Uncategorised

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 - (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

Notes

Bottom Section