col_kurtz1979 0 Posted October 13, 2002 I recently made a sniper deathmatch set in the mountains of everon. Three East versus three West. The trouble is I didnt included a killing zone so some players just end up wondering around the map and getting lost. This ruins the game because you end up with snipers looking for each other when they are on opposite ends of the island. I need to included a killing zone to prevent this from happening. I can only find one tutorial (www.ofpec.com) and it doesnt work, so if anyone knows how to create a killing zone please let me know. Share this post Link to post Share on other sites
iNeo 0 Posted October 13, 2002 Place 4 triggers so that they make 4 walls around the area where the players may be. In each trigger, put: Activation: Anybody Repeatedly Present In On Activation field, put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x setdammage 1" foreach thislist<span id='postcolor'> This kills everyone that enters the triggers' area. Share this post Link to post Share on other sites
col_kurtz1979 0 Posted October 13, 2002 Thanks, I`ll give it a try. Share this post Link to post Share on other sites
Shorty87 0 Posted October 13, 2002 it doesn't work it doesn't kill me when i go trough the trigger Share this post Link to post Share on other sites
col_kurtz1979 0 Posted October 13, 2002 It worked ok for me Except when I sent a whole squad in at the same time Instead of typing: "_x setdammage 1" foreach thislist I tried to simulate a mine going off by writing this: [_x] exec "explosion.sqs" This didnt work however Any Ideas??? Share this post Link to post Share on other sites
Bart.Jan 0 Posted October 13, 2002 Try : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> "[_x] exec ""explosion.sqs""" foreach thislist <span id='postcolor'> If it will not work, you must execute : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[thislist] exec "explosion.sqs"<span id='postcolor'> but you must change script so it will not work with unit but with array of units. Share this post Link to post Share on other sites
col_kurtz1979 0 Posted October 13, 2002 The first line i already tried and it doesnt work. The second one also errors but I might need to change the script im using: _AmmoType = "Heat120" _Unit = _this select 0 _Explosion = GetPos _Unit _cx = _Explosion select 0 _cy = _Explosion select 1 _cz = _Explosion select 2 _tempObj = _AmmoType camCreate[_cx, _cy, _cz] ~0.01 _tempobj = objNull exit Maybe where it says _unit I should change it to _array (or _tempobj to _temparray) Share this post Link to post Share on other sites
Bart.Jan 0 Posted October 13, 2002 Change script to : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _AmmoType = "Heat120" _units = _this select 0 _i=count _units #more _i=_i-1 _Explosion = GetPos (_units select _i) _cx = _Explosion select 0 _cy = _Explosion select 1 _cz = _Explosion select 2 _tempObj = _AmmoType camCreate[_cx, _cy, _cz] ~0.01 ?i>0:goto "more" exit <span id='postcolor'> And call it by : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[thislist] exec "explosion.sqs"<span id='postcolor'> Share this post Link to post Share on other sites
col_kurtz1979 0 Posted October 13, 2002 Thanks for the script bart.jan It was fun sending all my men to their deaths Should stop people trying to run away. Share this post Link to post Share on other sites