Jump to content
Sign in to follow this  
SpecOp9

Teleporting JIP players to where the action is

Recommended Posts

I have a problem where my mission takes place across a fairly large area, and JIP players start at the insertion point when the mission may be close to the end, and JIP players must run for an eternity to catch up to the squad.

My solution was to create warp flags that teleported JIP players as "reinforcements", somewhat within the realm of the current objective. I used

player setPos (getMarkerPos "warpzone2");

inside my warp trigger when a player enters it. The problem is, it teleports EVERYONE to the location, and that's absolutely NOT what I want. I want ONLY the player who entered the warp trigger to be teleported.

How do I fix this?

Share this post


Link to post
Share on other sites

First off, triggers placed via map are executed globally which is why everyone is being teleported. on the trigger activation you should do something like this: if(local (thislist select 0)) then {player setPos (getMarkerPos "warpzone2")};

It's probably better to place a flag or some sort of object at your base and add an action to it that players click to teleport. This would eliminate the execution on all clients, etc.

Share this post


Link to post
Share on other sites

Thanks Tonic, so if I did an addAction at the flag instead, would I use the same code? player setPos (getMarkerPos "warpzone2"); (In a SQF) ?

Edited by SpecOp9

Share this post


Link to post
Share on other sites
Thanks Tonic, so if I did an addAction at the flag instead, would I use the same code? player setPos (getMarkerPos "warpzone2"); (In a SQF) ?

Yep, that would work fine.

Share this post


Link to post
Share on other sites

snip.

Edited by cuel

Share this post


Link to post
Share on other sites

If I where you, I'd make them teleport to their groupleaders instead of using a fixed marker. Otherwise players will use that action to teleport there right at the start – which is probably not your intention.

Using some sort of respawn-vehicle as warp-target would also work nicely.

Share this post


Link to post
Share on other sites

Hi Tajin, I made it so that the first objective must be complete before the first warp flag is available, which eliminated the ability to warp at mission start. Each mission completion unlocks a new warp so that when JIPers join at any time they can join in on the fight

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×