getWorld: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.99|Game version=
|1.99


|gr1= Mission Information |GROUP1=
|gr1= Mission Information


| Returns the name of the current map. Name is actually class as defined in config (eg Intro).  
| Returns the name of the current map. Name is actually class as defined in config (eg Intro).  
{{Warning | This command doesn't exist outside of {{ofp}}. Use [[worldName]] instead}} |Description=
{{Warning | This command doesn't exist outside of {{ofp}}. Use [[worldName]] instead}}


| [[getWorld]] |Syntax=
| [[getWorld]]


| [[String]] |Return value=
| [[String]]
   
   
|x1= <code>{{codecomment|; if testing on Everon, [[getWorld]] will return "eden"}}
|x1= <code>{{codecomment|; if testing on Everon, [[getWorld]] will return "eden"}}
[[hint]] [[getWorld]]</code> |Example 1=
[[hint]] [[getWorld]]</code>


| [[worldName]]|See also=
| [[worldName]]
}}
}}



Revision as of 00:40, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns the name of the current map. Name is actually class as defined in config (eg Intro).
This command doesn't exist outside of Operation Flashpoint. Use worldName instead
Groups:
Mission Information

Syntax

Syntax:
getWorld
Return Value:
String

Examples

Example 1:
; if testing on Everon, getWorld will return "eden" hint getWorld

Additional Information

See also:
worldName

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