BIS fnc customGPS: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: GUI(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma2oa |Game name=
| arma2oa |Game name=
Line 11: Line 10:


|eff= local |MPEffects=
|eff= local |MPEffects=
____________________________________________________________________________________________


| Replaces GPS frame.<br>
| Replaces GPS frame.<br>
The following line '''must''' be defined in mission [[Description.ext]]:
The following line '''must''' be defined in mission [[Description.ext]]:
<syntaxhighlight lang="cpp">onMinimapScript[] = {"BIS_fnc_customGPS_Spawn"};</syntaxhighlight> |Description=
<syntaxhighlight lang="cpp">onMinimapScript[] = {"BIS_fnc_customGPS_Spawn"};</syntaxhighlight> |Description=
____________________________________________________________________________________________


| [path, ''deltaX'', ''deltaY''] call [[BIS_fnc_customGPS]] |Syntax=
| [path, ''deltaX'', ''deltaY''] call [[BIS_fnc_customGPS]] |Syntax=
Line 29: Line 26:


|x1= <code>["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] [[call]] [[BIS_fnc_customGPS]];</code>|EXAMPLE1=
|x1= <code>["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] [[call]] [[BIS_fnc_customGPS]];</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[Functions Library]] |SEEALSO=
| [[Functions Library]] |SEEALSO=

Revision as of 00:09, 17 January 2021

Hover & click on the images for description

Description

Description:
Replaces GPS frame.
The following line must be defined in mission Description.ext:
onMinimapScript[] = {"BIS_fnc_customGPS_Spawn"};
Execution:
call
Groups:
GUI

Syntax

Syntax:
[path, deltaX, deltaY] call BIS_fnc_customGPS
Parameters:
path: String - full path to image file
deltaX (Optional): Number
deltaY (Optional): Number
Return Value:
Boolean

Examples

Example 1:
["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] call BIS_fnc_customGPS;

Additional Information

See also:
Functions Library

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