BIS fnc dirIndicator: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Page refilling - missing see also)
Line 6: Line 6:
|1.56|=
|1.56|=


|arg= |= MPARGUMENTS
|arg= glob |=


|eff= local |= Effects in MP
|eff= local |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Direction indicator.<br /><br />GUI layer for indicator is 17.|=
| Show a 4-directions indicator.<br />
Indicator GUI layer is 17, its [[Display]] is accessible with {{Inline code|[[uiNamespace]] [[getVariable]] "BIS_RscMissionScreen_dirIndicator"}}.<br />
{{Informative|once executed, this function '''cannot''' be halted until ''center''<nowiki>'</nowiki>s death.}} |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [center,related object,''color'',''sizeCoef''] call '''BIS_fnc_dirIndicator''' |=
| [origin, target, color, sizeCoef] call [[BIS_fnc_dirIndicator]] |= Syntax


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


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


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


|p4= sizeCoef ''(Optional)'': [[Number]] - size coeficient (default is same as height of command bar) |= PARAMETER4
|p4= sizeCoef: [[Number]] - (Optional, default 0.1045752 (command bar height)) size coefficient |= Parameter 4


| [[Nothing]] |= RETURNVALUE
| [[Script_(Handle)|Script handle]] |= Return value


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


| [[Functions Library]] |= SEEALSO
| |= See also
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}



Revision as of 15:05, 8 May 2018

-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".
once executed, this function cannot be halted until center'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