name location: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(seealso example)
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_locationName = name myLocation</pre> |= Example 1
|x1= <code>_locationName = [[name]] myLocation;</code> |= Example 1
|x2= <code>[[name]] [[nearestLocation]] <nowiki>[</nowiki>[[position]] [[player]], "Hill"]; //""
[[text]] [[nearestLocation]] <nowiki>[</nowiki>[[position]] [[player]], "Hill"]; //"Lesnoy Khrebet"</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setName]] |= See also
| [[name]], [[createLocation]], [[deleteLocation]], [[drawLocation]], [[locationPosition]], [[locationNull]], [[nearestLocation]], [[nearestLocations]], [[nearestLocationWithDubbing]], [[setName]] |= See also


}}
}}

Revision as of 22:08, 17 May 2015

-wrong parameter ("Arma") defined!-1.08
Hover & click on the images for description

Description

Description:
Returns the location's name.
Groups:
Uncategorised

Syntax

Syntax:
name location
Parameters:
location: Location
Return Value:
String

Examples

Example 1:
_locationName = name myLocation;
Example 2:
name nearestLocation [position player, "Hill"]; //"" text nearestLocation [position player, "Hill"]; //"Lesnoy Khrebet"

Additional Information

See also:
namecreateLocationdeleteLocationdrawLocationlocationPositionlocationNullnearestLocationnearestLocationsnearestLocationWithDubbingsetName

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

kju
Appears to be only for the 3d editor.

Bottom Section

Posted on May 17, 2015 - 18:20 (UTC)
Bull A
To return the textual name of a location use text command instead