Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: locationPosition v. position and attached objects  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

Offline Trexian

  • Members
  • *
locationPosition v. position and attached objects
« 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?
Sic semper tyrannosauro.