icebreakr 3159 Posted February 6, 2008 Problem: Respawned players usually create chaos with their solo-actions. We need an option that would allow a respawn only when certain number of soldiers are ready at the respawn point. Solution - basic idea: 1. Everyone respawns in a small area surrounded by sandbags where you have ammo crates and other equipment. You are closed up in this area. 2. Area is closed by gates (wall object) and when trigger script counts that there are more than 3 units in the area the gates open (setdamage 1). 3. Gates automatically close in 20 sec (check !alive) but they can be reopened from outside (again 20sec). Does anyone of you have a much needed script that checks how many players are in the for example 20x20m rectangle triggerbox? Share this post Link to post Share on other sites
loyalguard 15 Posted February 6, 2008 Does anyone of you have a much needed script that checks how many players are in the for example 20x20m rectangle triggerbox? You don't need a script for this. If you want the trigger to activate when there are more than 3 units in the detection area simply put this in the condition field of the trigger: count thisList > 3 Share this post Link to post Share on other sites
The_Captain 0 Posted February 6, 2008 This solution sounds like wave respawn, but with the trigger to release the wave being a number of people waiting rather than a time limit (like 5 minutes). Two suggestions: 1) write a dialog or interface to keep players at until they respawn. This would negate the need to keep them in a walled enclosure and be portable between maps. you can also respawn them wherever you want: on a squad leader, at the mose forward base, whatever 2) allow players to respawn if the wave timer has reached 5 minutes, or some maximum limit, but respawn the wave if a minimum threshold is reached (5 or so players). This allows dead players to still respawn if the maximum time is reached. Share this post Link to post Share on other sites
icebreakr 3159 Posted February 7, 2008 Tnx for the tips, I already made a section of base that it closed until 3 guys are set in. Anyone from outside can open the doors too in case one gets forgotten inside Share this post Link to post Share on other sites