shownGPS: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "ciev" to "ceiv")
 
(55 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SHOWNGPS]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|SHOWNGPS]]
[[Category:Scripting Commands OFP 1.46|SHOWNGPS]]
[[Category:Scripting Commands ArmA|SHOWNGPS]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066">'''shownGps'''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


None.
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Boolean]]
|game7= arma3
|version7= 0.50


'''Description:'''
|gr1= Interaction


Check if player has Gps reciever enabled.
|descr= Checks if client has GPS receiver enabled in [[Description.ext|description.ext]] (''showGPS'' param) or force enabled with [[showGPS]] command.


|s1= [[shownGPS]]


'''Example:'''
|r1= [[Boolean]]


? '''shownGps''' : [[hint]] "You have a Gps reciever."
|x1= <sqf>if (shownGPS) then { hint "You have the GPS receiver enabled" };</sqf>
 
|seealso= [[showGPS]] [[visibleGPS]] [[openGPS]] [[shownWatch]] [[shownCompass]] [[shownHUD]]
}}

Latest revision as of 22:33, 26 April 2024

Hover & click on the images for description

Description

Description:
Checks if client has GPS receiver enabled in description.ext (showGPS param) or force enabled with showGPS command.
Groups:
Interaction

Syntax

Syntax:
shownGPS
Return Value:
Boolean

Examples

Example 1:
if (shownGPS) then { hint "You have the GPS receiver enabled" };

Additional Information

See also:
showGPS visibleGPS openGPS shownWatch shownCompass shownHUD

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