locationNull: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Variables |GROUP2= | |gr2= Variables |GROUP2= | ||
| 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]]: | ||
Line 15: | Line 13: | ||
* <tt>[[isNull]] [[locationNull]]; // true</tt> | * <tt>[[isNull]] [[locationNull]]; // true</tt> | ||
* <tt>[[locationNull]] [[isEqualTo]] [[locationNull]]; // true</tt> |DESCRIPTION= | * <tt>[[locationNull]] [[isEqualTo]] [[locationNull]]; // true</tt> |DESCRIPTION= | ||
| '''locationNull''' |SYNTAX= | | '''locationNull''' |SYNTAX= | ||
Line 31: | Line 28: | ||
| x2 = <code>[[str]] [[locationNull]]; // No location</code> |EXAMPLE2= | | x2 = <code>[[str]] [[locationNull]]; // No location</code> |EXAMPLE2= | ||
| x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code> |EXAMPLE3= | | x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code> |EXAMPLE3= | ||
| [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO= | | [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:59, 17 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