locationNull: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Locations | |gr1= Locations | ||
|gr2= Variables | |gr2= Variables | ||
| A non-existing [[Location]]. To compare non-existent locations use [[isNull]] or [[isEqualTo]]: | | A non-existing [[Location]]. To compare non-existent locations use [[isNull]] or [[isEqualTo]]: | ||
* <tt>[[locationNull]] <nowiki>==</nowiki> [[locationNull]]; // false</tt> | * <tt>[[locationNull]] <nowiki>==</nowiki> [[locationNull]]; // false</tt> | ||
* <tt>[[isNull]] [[locationNull]]; // true</tt> | * <tt>[[isNull]] [[locationNull]]; // true</tt> | ||
* <tt>[[locationNull]] [[isEqualTo]] [[locationNull]]; // true</tt> | * <tt>[[locationNull]] [[isEqualTo]] [[locationNull]]; // true</tt> | ||
| '''locationNull''' | | '''locationNull''' | ||
|p1 | |p1= | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Location]] | | [[Location]] | ||
| x1 = <code>![[isNull]] [[locationNull]]; // false</code> | | x1 = <code>![[isNull]] [[locationNull]]; // false</code> | ||
| x2 = <code>[[str]] [[locationNull]]; // No location</code> | | x2 = <code>[[str]] [[locationNull]]; // No location</code> | ||
| x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code> | | x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code> | ||
| [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] | | [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:05, 18 January 2021
Description
- Description:
- A non-existing Location. To compare non-existent locations use isNull or isEqualTo:
- locationNull == locationNull; // false
- isNull locationNull; // true
- locationNull isEqualTo locationNull; // true
- Groups:
- LocationsVariables
Syntax
- Syntax:
- locationNull
- Return Value:
- Location
Examples
- Example 1:
!isNull locationNull; // false
- Example 2:
str locationNull; // No location
- Example 3:
position locationNull; // [0,0,0]
Additional Information
- See also:
- controlNulldisplayNullgrpNullobjNulltaskNullteamMemberNullscriptNullconfigNulltypeNameisNull
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