Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
rrpatch

Teleport via trigger or gamelogic

Recommended Posts

I have a visible H on the ground called Delta and another one called Echo on another part of the map. I need a way to teleport from one to the other without using a script. I can only use org arma2 codes. Do I use a game logic or trigger? And what code do I use and where do I put that code in each one?

Any help would be great. Thank you in advance..

Share this post


Link to post
Share on other sites

So this would be the simplest implementation. The player walks into the H and is automatically teleported to the other one. This is how you set it up:

In each trigger, assuming you want it to to happen repeatedly set it so and make activation present anybody (unless you want to limit it to a certain side). Place the trigger right on top of the H and give it a small detection radius. 5x5 should fit perfectly. Set this as the condition for your trigger:

player in thisList

This condition means that only if the player is in the list of all units currently within the trigger detection area.

Put this in the On Activation Line:

player setPosATL (getPos Echo);

Assuming he is at delta, he will teleport immediately to Echo. Set Echo up the same way but with an activation of this instead:

player setPosATL (getPos Delta);

Again,this will automatically teleport the player. If you want to have the player initiate teleportation himself that is going to be harder without using scripts.

Good luck!

Share this post


Link to post
Share on other sites

Thank you much. This is what I wanted to do. Thank you again for your help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×