locationPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(formatting syntax, example added, seealso added)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''locationPosition''' [[Location]] |= Syntax
| '''locationPosition''' location |= Syntax


|p1= [[Location]] |= Parameter 1
|p1= location: [[Location]] |= Parameter 1


| [[Position]] |= Return value
| [[Array]] - format [[Position]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_locationPos = locationPosition myLocation</pre> |= Example 1
|x1= <code>_locationPos = [[locationPosition]] myLocation;</code> |= Example 1
 
|x2= <code>_location = [[nearestLocation]] <nowiki>[</nowiki>[[getPos]] [[player]], "nameCity"];
_locationPos = [[locationPosition]] _location;</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setPosition]], [[position]] |= See also
| [[setPosition]], [[createLocation]], [[nearestLocation]], [[nearestLocations]], [[position]] |= See also


}}
}}

Revision as of 12:49, 8 August 2014

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

Description

Description:
Returns the position of a location. If the location is attached to an object, that object's position is returned.
Groups:
Uncategorised

Syntax

Syntax:
locationPosition location
Parameters:
location: Location
Return Value:
Array - format Position

Examples

Example 1:
_locationPos = locationPosition myLocation;
Example 2:
_location = nearestLocation [getPos player, "nameCity"]; _locationPos = locationPosition _location;

Additional Information

See also:
setPositioncreateLocationnearestLocationnearestLocationsposition

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