BIS fnc customGPS: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " |s1=[" to " |s1= [")
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=function
____________________________________________________________________________________________


| arma2oa |=
|game1= arma2oa
|version1= 1.56


|1.56|=
|game2= tkoh
|version2= 1.00


|arg= |= MPARGUMENTS
|game3= arma3
|version3= 0.50


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


| Replaces GPS frame.<br /><br />Following line have to be defined in mission Description.ext:<br /><code>onMinimapScript[] <nowiki>=</nowiki> {"BIS_fnc_customGPS_Spawn"};</code>|=
|eff= local
____________________________________________________________________________________________


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


|p1= path: [[String]] - full path to image file |= PARAMETER1
|s1= [path, ''deltaX'', ''deltaY''] call [[BIS_fnc_customGPS]]


|p2= deltaX ''(Optional)'': [[Number]] |= PARAMETER2
|p1= path: [[String]] - full path to image file


|p3= deltaY ''(Optional)'': [[Number]] |= PARAMETER3
|p2= deltaX ''(Optional)'': [[Number]]


| [[Boolean]] |= RETURNVALUE
|p3= deltaY ''(Optional)'': [[Number]]


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


| [[Functions Library]] |= SEEALSO
|x1= <sqf>["ca\missions_pmc\data\ui_gps_ca.paa", -0.05, 0.16] call BIS_fnc_customGPS;</sqf>


| |= MPBEHAVIOUR
|seealso= [[Functions Library]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: Functions|CUSTOMGPS}}]]
[[Category:Function Group: GUI|customGPS]]

Latest revision as of 23:11, 12 July 2022

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