Difference between revisions of "getWorld"

From Bohemia Interactive Community
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| ofp |= Game name
+
| ofp |Game name=
  
| 1.99 |= Game version
+
|1.99|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Returns the name of the current map. Name is actually class as defined in config (eg Intro). |= Description
+
| 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=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''getworld''' |= Syntax
+
| [[getWorld]] |Syntax=
  
 
+
| [[String]] |Return value=
| [[String]] |= Return value
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
|x1= <code> myworld <nowiki>=</nowiki>'''getWorld''' </code>|= Example 1
+
|x1= <code>{{codecomment|; if testing on Everon, [[getWorld]] will return "eden"}}
____________________________________________________________________________________________
+
[[hint]] [[getWorld]]</code> |Example 1=
 
 
|x1= <code>hint getWorld</code>
 
If testing in the Everon island it will display: eden |= Example 1
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[worldName]]|= See also
+
| [[worldName]]|See also=
 
 
 
}}
 
}}
  
Line 38: Line 34:
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
 
<dl class="command_description">
 
<dd class="notedate">Posted on November 24, 2017 - 23:52 (UTC)</dd>
 
<dt class="note">[[User:DrSova|DrSova]]</dt>
 
<dd class="note">
 
Seems doesn't work in A3 1.76.143281
 
</dd>
 
</dl>
 
<!-- DISCONTINUE Notes -->
 

Latest revision as of 00:49, 30 May 2018

Introduced with Operation Flashpoint version 1.991.99
Hover & click on the images for descriptions

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

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

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section