endlessroot 10 Posted March 10, 2013 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
rogue trdr 10 Posted March 10, 2013 Do you mean a separate respawn for each squad? Share this post Link to post Share on other sites
endlessroot 10 Posted March 11, 2013 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
cuel 25 Posted March 11, 2013 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
endlessroot 10 Posted March 11, 2013 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
Gunter Severloh 3949 Posted March 11, 2013 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
cuel 25 Posted March 12, 2013 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
endlessroot 10 Posted March 12, 2013 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
cuel 25 Posted March 12, 2013 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
endlessroot 10 Posted March 12, 2013 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