OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: NightJay0044 on 18 Apr 2010, 19:34:45

Title: Teleporation Need
Post by: NightJay0044 on 18 Apr 2010, 19:34:45
Hi how do you create a teleporation for a player between two points? Able to teleport from this base to this base for example?

Thanks..
Title: Re: Teleporation Need
Post by: bedges on 19 Apr 2010, 10:27:30
Without wanting to sound antagonistic, there are 7 pages of search results in the forum for "teleport". Are none of those threads of any use?
Title: Re: Teleporation Need
Post by: Speeder on 11 May 2010, 17:13:56
Use translate.google.com  to translate from Danish:


Simpel teleport

Dette teleporterer alle personer som bevæger sig inden for en triggers radius til en anden position, markeret ved en Gamelogic.
 
Lav trigger ved afrejsested.
Activated by: "Hvad du end ønsker"
Skriv i on Activation:
(thislist select 0) setPos getPos gameLogic1
 
 
Indsæt en gamelogic navngivet gameLogic1 på ankomststed.
 
/Af Speeder
Title: Re: Teleporation Need
Post by: h- on 11 May 2010, 20:36:38
Why not post that in english then, after all this is an english forum..  :scratch:
Title: Re: Teleporation Need
Post by: Speeder on 10 Jun 2010, 20:29:04
Simpel teleport

This will teleport all persons who get's within a triggers radius, to a different location, marked by a GameLogic.

Make trigger by departure place
Activated by: "what ever you desire"  Repeatedly
In on Activation:
(thislist select 0) setPos getPos gameLogic1
 
insert a gamelogic named gameLogic1 at the arrival destination.
 
/Af Speeder
Title: Re: Teleporation Need
Post by: haroon1992 on 11 Jun 2010, 17:27:58
Put two invisible helihs or gamelogics at exactly your desired two positions
name them pos_1 and pos_2 respectively.

Put a trigger :

Radius : 0
Activation : Radio Alpha
Present
Repeatedly

in On Act box ,put  :
Code: [Select]
if (player distance pos_1 < 5 ) then { player setpos getpos pos_2} else { player setpos getpos pos_1 };

call the radio by pressing 0 - 0 - 1.
You'll be teleported to pos_1 if you are more than 5m from pos_1.Otherwise,you get setposed to pos_2.

Regards,
Haroon1992