position: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (added location)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Synonym for [[getPos]]. |= Description
| Returns an object's or location's position. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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



Revision as of 13:14, 26 November 2007

Hover & click on the images for description

Description

Description:
Returns an object's or location's position.
Groups:
Uncategorised

Syntax

Syntax:
Position = position ObjectOrLocation
Parameters:
ObjectOrLocation: An Object or Location
Return Value:
Position

Examples

Example 1:
_Pos = position player
Example 2:
_myLocationPos = position myLocation

Additional Information

See also:
See also needed

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