position: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an object's or (in [[ArmA]] 1.08 onwards) location's position. If using a [[Location|location]] that is attached to an object, the location's set or created position is returned rather than object's position.|= Description
| Synonym for [[getPos]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Position]] <nowiki>=</nowiki> '''position''' ObjectOrLocation|= Syntax
| [[Position]] <nowiki>=</nowiki> '''position''' [[Object]]|= Syntax


|p1= ObjectOrLocation: An [[Object]] or [[Location]] |= Parameter 1


| [[Position]]|= Return value
| [[Array]]|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_Pos<nowiki> =</nowiki> position [[player]]</code> |= Example 1
|x1= <code>_Pos<nowiki> =</nowiki> position [[player]]</code> |= Example 1
|x2= <code>_myLocationHomePos<nowiki> =</nowiki> position myLocation</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[locationPosition]], [[getPos]] |= See also
| [[position_location|position location]], [[getPos]] |= See also


}}
}}

Revision as of 14:31, 26 November 2007

Hover & click on the images for description

Description

Description:
Synonym for getPos.
Groups:
Uncategorised

Syntax

Syntax:
Position = position Object
Return Value:
Array

Examples

Example 1:
_Pos = position player

Additional Information

See also:
position locationgetPos

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