Jump to content
Sign in to follow this  
col_kurtz1979

How do i include a killing zone?

Recommended Posts

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

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

It worked ok for me wink.gif Except when I sent a whole squad in at the same time wow.gif

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 mad.gif

Any Ideas???

Share this post


Link to post
Share on other sites

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

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) confused.gif

Share this post


Link to post
Share on other sites

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

Thanks for the script bart.jan

It was fun sending all my men to their deaths tounge.gif

Should stop people trying to run away.

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  

×