OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Trexian on 16 Sep 2009, 17:46:26

Title: locationPosition v. position and attached objects
Post by: Trexian on 16 Sep 2009, 17:46:26
The wiki has 2 different ways to determine the position array of a cfg-described location.

position (used to determine the position of a location):
http://community.bistudio.com/wiki/position_location
Quote
Returns a location's position. If it is attached to an object, the location's set or created position is returned rather than object's position.

locationPosition (used to determine the position of a location):
http://community.bistudio.com/wiki/locationPosition
Quote
Returns the position of a location. If the location is attached to an object, that object's position is returned.

Ok, I see that there's a difference in what is returned, based on whether an object is attached.  Makes much sense.

But begs the question(s) - how and why would you "attach" an object to a location?