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: Place object below surface  (Read 845 times)

0 Members and 1 Guest are viewing this topic.

KingBuffalo

  • Guest
Place object below surface
« on: 26 May 2005, 14:14:11 »
Is it possible to place an object just below the surface but still have it usable?  For example, I am trying to place a med tent, just below the surface, so that a player can run to a spot and heal, without the med tent being seen.

GI-YO

  • Guest
Re:Place object below surface
« Reply #1 on: 26 May 2005, 14:18:46 »
you can do that with this little line of code

this setpos [(GetPos this select 0), (GetPos this select 1), -1]

The -1 part at the end can be changed to any height, you might have to experiment so the tent is not invisibel.

happy mission making

GI-YO

KingBuffalo

  • Guest
Re:Place object below surface
« Reply #2 on: 26 May 2005, 16:57:35 »
thanks, I will give this a try!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Place object below surface
« Reply #3 on: 26 May 2005, 18:24:12 »
It will work for some objects but not others.  I wanted to put an empty boat underground (I just wanted the noise).  It can be done but a few seconds into the mission it just pops out again.