locationNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" 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


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1= Locations |GROUP1=
|gr1= Locations


|gr2= Variables |GROUP2=
|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> |DESCRIPTION=
* <tt>[[locationNull]] [[isEqualTo]] [[locationNull]]; // true</tt>


| '''locationNull''' |SYNTAX=
| '''locationNull'''


|p1= |PARAMETER1=  
|p1=


|p2= |PARAMETER2=  
|p2=


|p3= |PARAMETER3=  
|p3=


| [[Location]] |RETURNVALUE=
| [[Location]]




| x1 = <code>![[isNull]] [[locationNull]]; // false</code> |EXAMPLE1=
| x1 = <code>![[isNull]] [[locationNull]]; // false</code>
| x2 = <code>[[str]] [[locationNull]]; // No location</code> |EXAMPLE2=
| x2 = <code>[[str]] [[locationNull]]; // No location</code>
| x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code> |EXAMPLE3=
| x3 = <code>[[position]] [[locationNull]]; // [0,0,0]</code>


| [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
| [[controlNull]], [[displayNull]], [[grpNull]], [[objNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 02:05, 18 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