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: Teleporting  (Read 2078 times)

0 Members and 1 Guest are viewing this topic.

Offline 22jacket

  • Members
  • *
  • I'm a llama!
Teleporting
« on: 11 Dec 2007, 11:24:19 »
Hi there I am trying to do an orientering map teleporting players from tent to tent ie they start of walking into tent get teleported to somewhere on island then find another tent etc...I can do players from ground into a heli ie moveincargo etc but how do I make  a player walking into a tent and being teleported to another tent, somewhere else on the mapxx


Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Teleporting
« Reply #1 on: 11 Dec 2007, 11:36:25 »
Use getPos on the destination tent to find out where it is and setPos on the player to move him.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline 22jacket

  • Members
  • *
  • I'm a llama!
Re: Teleporting
« Reply #2 on: 11 Dec 2007, 11:59:56 »
okay cheers once again spooner..will have a read up up on getpos and setposxx :good: