BIS fnc customGPS: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2oa | | arma2oa | ||
|1.56 | |1.56 | ||
|gr1= GUI | |gr1= GUI | ||
|arg= |MPARGUMENTS= | |arg= |MPARGUMENTS= | ||
Line 13: | Line 13: | ||
| 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> | <syntaxhighlight lang="cpp">onMinimapScript[] = {"BIS_fnc_customGPS_Spawn"};</syntaxhighlight> | ||
| [path, ''deltaX'', ''deltaY''] call [[BIS_fnc_customGPS]] | | [path, ''deltaX'', ''deltaY''] call [[BIS_fnc_customGPS]] | ||
|p1= path: [[String]] - full path to image file | |p1= path: [[String]] - full path to image file | ||
|p2= deltaX ''(Optional)'': [[Number]] | |p2= deltaX ''(Optional)'': [[Number]] | ||
|p3= deltaY ''(Optional)'': [[Number]] | |p3= deltaY ''(Optional)'': [[Number]] | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] [[call]] [[BIS_fnc_customGPS]];</code> | |x1= <code>["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] [[call]] [[BIS_fnc_customGPS]];</code> | ||
| [[Functions Library]] | | [[Functions Library]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 23:02, 17 January 2021
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