Jump to content
Sign in to follow this  
160th(SOAR)LoNeWoLF

Destroying units when they enter an area

Recommended Posts

I was wondering how you script a map so when you enter a certain area as say a west unit you die (Basically how many map makers prevent base-rape in CTF and other missions) because I simply hate having a decent A-10 pilot kill everything in my base and laggin us all to hell.

Thanks In Advance

-WoLF smile.gif

Share this post


Link to post
Share on other sites

This is easily done wit a few triggers. Ill email ya a tutorial i just made for ya give me address please.

Kevin

Share this post


Link to post
Share on other sites

It can be done by trigger (do not cover whole area you want to protect with it, but make only square borders by several triggers):

activated by : anybody - repeatly

on activatin : [thislist,"west"] exec "border.sqs"

border.sqs script :

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

;[array of units,"unwelcome side"] exec "border.sqs"

_units= _this select 0

_side = _this select 1

_i=count _units

#loop

_i=_i-1

_unit = _units select _i

?(side _unit == _side):_unit setdammage 1

?_i>0:goto "loop"

exit

<span id='postcolor'>

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  

×