openGPS: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.04 | |||
|version1= 2. | |||
|gr1= Interaction | |gr1= Interaction | ||
|descr= Opens or closes minimap if player has | |descr= Opens or closes minimap if player has {{hl|"ItemGPS"}} linked in inventory and {{hl|"MinimapDisplayComponent"}} is not disabled with [[enableInfoPanelComponent]]. Returns [[true]] on success. If more than one minimap is open (see [[infoPanels]], [[infoPanel]]) each call to the command will close only 1 minimap. Visibility of minimap can be checked with [[visibleGPS]] command. | ||
|s1= | |s1= [[openGPS]] open | ||
|p1= open: [[Boolean]] - [[true]] to open, [[false]] to close | |p1= open: [[Boolean]] - [[true]] to open, [[false]] to close | ||
Line 15: | Line 14: | ||
|r1= [[Boolean]] - [[true]] on success | |r1= [[Boolean]] - [[true]] on success | ||
|x1= < | |x1= <sqf> | ||
player linkItem "ItemGPS"; | |||
private _success = openGPS true; | |||
</sqf> | |||
|x2= To close all opened minimaps:< | |x2= To close all opened minimaps: | ||
<sqf> | |||
while { openGPS false } do { }; | |||
// or | // or | ||
while { visibleGPS } do { openGPS false }; | |||
</sqf> | |||
|seealso= [[showGPS]] [[shownGPS]] [[visibleGPS]] | |seealso= [[showGPS]] [[shownGPS]] [[visibleGPS]] | ||
}} | }} |
Latest revision as of 17:28, 5 May 2022
Description
- Description:
- Opens or closes minimap if player has "ItemGPS" linked in inventory and "MinimapDisplayComponent" is not disabled with enableInfoPanelComponent. Returns true on success. If more than one minimap is open (see infoPanels, infoPanel) each call to the command will close only 1 minimap. Visibility of minimap can be checked with visibleGPS command.
- Groups:
- Interaction
Syntax
- Syntax:
- openGPS open
- Parameters:
- open: Boolean - true to open, false to close
- Return Value:
- Boolean - true on success
Examples
- Example 1:
- Example 2:
- To close all opened minimaps:
Additional Information
- See also:
- showGPS shownGPS visibleGPS
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