Jump to content
Sign in to follow this  
endlessroot

Seperate RESPAWN point for unit groups.

Recommended Posts

I have setup an RESPAWN point for WEST, but the question is how to make a separate RESPAWN location for each unit group.

Can someone help me?

Share this post


Link to post
Share on other sites

Exactly, lets say ALPHA spawns every time when killed on point A and BRAVO on point B

Share this post


Link to post
Share on other sites

Name the groups e.g init line of squad A:

sqA = group this;

Put markers and name them like "sqA_respawn" where you want them to spawn.

Put the respawn_west somewhere safe, drop a trigger repeatedly on it

condition:

player in thisList

on act:

switch (group player) do {
 case sqA: {player setPosATL (markerPos "sqA_respawn"};
 case sqB: {player setPosATL (markerPos "sqB_respawn"};
};

Share this post


Link to post
Share on other sites

The case code won't work, it gives me error. There isn't even a description with the error.

I've done it correctly though, step by step.

Share this post


Link to post
Share on other sites

If you want blufor to respawn at a certain point then then you name a marker respawn_west ,

if you want opfor to respawn somewhere then you name a marker respawn_east that is if your using a base respawn.

Which is:

respawn = base;

respawndelay = 5;

in your description.ext

Share this post


Link to post
Share on other sites
If you want blufor to respawn at a certain point then then you name a marker respawn_west ,

if you want opfor to respawn somewhere then you name a marker respawn_east that is if your using a base respawn.

Which is:

respawn = base;

respawndelay = 5;

in your description.ext

I think he's talking about the same side.

The case code won't work, it gives me error. There isn't even a description with the error.

I've done it correctly though, step by step.

I missed the end parenthesis.

switch (group player) do {
 case sqA: {player setPosATL (markerPos "sqA_respawn")};
 case sqB: {player setPosATL (markerPos "sqB_respawn")};
};

Share this post


Link to post
Share on other sites

Works like a charm, but it moves only one person from the group, not the whole squad.

Share this post


Link to post
Share on other sites

So there's AI in the squad? Didn't know that.

switch (group player) do {
 case sqA: {{_x setPosATL (markerPos "sqA_respawn")}forEach units group player};
 case sqB: {{_x setPosATL (markerPos "sqB_respawn")}forEach units group player};
};

Share this post


Link to post
Share on other sites

Damn, didn't know it matters if it's player or AI, but anyway.

Thank you man, you helped me very much. If you were a girl I would kiss you! :D

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  

×