locationPosition: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
(formatting syntax, example added, seealso added) |
||
Line 14: | Line 14: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''locationPosition''' | | '''locationPosition''' location |= Syntax | ||
|p1= [[Location]] |= Parameter 1 | |p1= location: [[Location]] |= Parameter 1 | ||
| [[Position]] |= Return value | | [[Array]] - format [[Position]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |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
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
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