el64Bit 1 Posted March 8, 2013 I'm trying to keep players in a town for a pvp style game mode. The zone restriction didn't work for me so I just places walls all around and setup the bases. 1. Is there a way to kill a player if he tries to leave the circle? 2. How do you set the warning message? Share this post Link to post Share on other sites
tambovskya 1 Posted March 8, 2013 Just make a marker and set that if player is in the marker then timer 10 seconds then respawn. Share this post Link to post Share on other sites
Ascorius 10 Posted March 8, 2013 Use the setDamage command. An easy way would be to use a trigger, and to use setDamage 1 to any player that enters it. You can set a perimeter outside the "killfield" with another trigger that gives you a warning with hint, titletext or radio for example. That would be the easy way at least. Share this post Link to post Share on other sites
Tuliq 2 Posted March 8, 2013 (edited) As with everything ARMA related; there is always at least one way! :) Create a trigger covering your fighting zone. Set activation to anybody. Set it to trigger Repeatedly. in the condition field write: !(player in thislist) in the on activation field: player setDamage 1 for a hint to appear you could write in on activation: hint "You are leaving the combat area. Deserters will be shot!"; sleep 5; if (!(player in thislist)) then {player setDamage 1}; Actually scratch that, not sure if sleep commands work with triggers. Edited March 8, 2013 by Tuliq Share this post Link to post Share on other sites
CombatComm 10 Posted March 8, 2013 How would you get the above trigger to work in MP? You couldn't use player as the variable right? Share this post Link to post Share on other sites
JohnDoer 1 Posted March 8, 2013 As with everything ARMA related; there is always at least one way! :)Create a trigger covering your fighting zone. Set activation to anybody. Set it to trigger Repeatedly. in the condition field write: !(player in thislist) in the on activation field: player setDamage 1 for a hint to appear you could write in on activation: hint "You are leaving the combat area. Deserters will be shot!"; sleep 5; if (!(player in thislist)) then {player setDamage 1}; Actually scratch that, not sure if sleep commands work with triggers. Hey that trigger works appreciate the info, is there any way to deactivate the trigger if the player re enters the zone? as of now it will just kill you even if you go back into the safe zone. I do have a second trigger that offers a warning about 15m from the kill zone, but that's a real a pain if you want to add spawn protection areas. Share this post Link to post Share on other sites
el64Bit 1 Posted March 8, 2013 Thank you everyone for the help. Share this post Link to post Share on other sites
Komu 10 Posted March 8, 2013 As with everything ARMA related; there is always at least one way! :)Create a trigger covering your fighting zone. Set activation to anybody. Set it to trigger Repeatedly. in the condition field write: !(player in thislist) in the on activation field: player setDamage 1 for a hint to appear you could write in on activation: hint "You are leaving the combat area. Deserters will be shot!"; sleep 5; if (!(player in thislist)) then {player setDamage 1}; Actually scratch that, not sure if sleep commands work with triggers. Perfect, works like a charm, however. How can I "paint" the borders (seen on a few maps where people have red lines along the border) When I enter a vehicle, my character dies, even if I'm inside the trigger area. You (or anyone else) know how to fix these? Share this post Link to post Share on other sites
JohnDoer 1 Posted March 8, 2013 This can be done by making a marker and simply covering the safe area. Share this post Link to post Share on other sites
Komu 10 Posted March 9, 2013 (edited) Ok I fixed the issue I had, and I made a Safe zone to prevent spawn killing. What I did was, that instead of typing "player setDamage 1 ;" in the Activation field, I typed it in the Deactivation field. And instead of covering the playable area with a trigger, I but up 4 individual triggers on the border of the play field. This way, you have to go inside the trigger to die. So you can simply cover a Spawn zone with a trigger, type the "player setDamage 1 ;" in the deactivation, and choose Activation OPFOR/BLUFOR depending on who's spawn it's. Edit: Btw, for the Hint thing, just put a new trigger a few meters away from the Border, and in the deactivation line put hint "You are leaving the combat area. Deserters will be shot!"; Again, thanks Tuliq for the help :D Edit2: Hmm ok another problem occured, now you don't die in a vehicle even if you crossed the border :( Edited March 9, 2013 by Komu Share this post Link to post Share on other sites
pridit 10 Posted March 9, 2013 Isn't hint global so it would still send to all players if one player left the boundary? Share this post Link to post Share on other sites
GODSPEEDSNAKE 12 Posted May 29, 2013 How would u keep say random module spawned AI out of a certain area? Share this post Link to post Share on other sites
mindstorm 8 Posted May 29, 2013 Ok I fixed the issue I had, and I made a Safe zone to prevent spawn killing.Edit2: Hmm ok another problem occured, now you don't die in a vehicle even if you crossed the border :( Place border triggers. Repeatedle. If they enter those triggers they die: Condition: (player in thislist) || (vehicle player != player && {vehicle player in thislist}) act: player setDammage 1; Share this post Link to post Share on other sites