Home   Help Search Login Register  

Author Topic: Teleportation via flagpoles or other objects  (Read 2255 times)

0 Members and 1 Guest are viewing this topic.

Offline B2KDragon

  • Members
  • *
    • Dogs of War
Teleportation via flagpoles or other objects
« on: 21 Mar 2012, 20:16:27 »
Hello there, it's been a very long time since I was last here.

I've done a forum search and I really just cannot find anything for this kind of thing, basically, making a small mission for myself and a few friends in which their are several areas around Chern that have training zones. And to get to them I wanted them to be linked via teleportation thanks to flagpoles or another object I find later on to use instead.

I've searched BI, Armaholic, a forum search here. The only thing I found whilst doing a Google search was this.

Code: [Select]
Trigger / flag has - this addAction ["Teleport - Airfield","teleport.sqf",["Airfield"]];

Marker being called Airfield. (No real reason will edit this later)

// Get the destination.
_dest = (_this select 3) select 0;

// Get a random direction
_dir = random 359;

// Move the person 15 meters away from the destination (in the direction of _dir)
player SetPos [(getMarkerPos _dest select 0)-10*sin(_dir),(getMarkerPos _dest select 1)-10*cos(_dir),+15];

Which was in a Armaholic post.

I bet you 9/10 it's something simple that I've just looked over, but any help any one is willing to give is greatlly appreciated.

The few hours I've been searching haven't turned anything up, but I bet I missed something simple.