locationNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
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

Hover & click on the images for description

Description

Description:
A non-existing Location. To compare non-existent locations use isNull or isEqualTo:
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

Notes

Bottom Section