Jump to content
Sign in to follow this  
Powerstrip

trigger problem

Recommended Posts

i am having some issues with the restrictzone module not triggering so decided to make something myself. i added a trigger that sets a rectangular size of my intended play area, then set it to activate on bluefor present. i put execvm "killplayer.sqf" in onact field and set the script to simply do player setdammage 1; i confirmed the script is working fine by puttng execvm in condition field of the trigger and it just kills the player always. how can i make the script trigger when player leaves or enters the trigger area? thanks.

Share this post


Link to post
Share on other sites

you want players to be killed when in the trigger and when not in the trigger??

for NOT in trigger, anyone present, use condition true, repeated, 1 second timeout, in on act:

{if (!(player in thisList)) then {player setDammage 1}} foreach allUnits;

for IN trigger:

{if (player in thisList) then {player setDammage 1}} foreach allUnits;

Share this post


Link to post
Share on other sites

My preference is to make it kill any bluefor unit that leaves the trigger zone. my intent is a close quarter fight through the main city area of zargabad, So i want to kill any blufor ai units that attempt to manuevr outside of the trigger area. i guess its really just a dicipline thing since ill be the only one to play it most likely. but if i dont limit theplayzone ill probably end up on the edge of the map sniping out all ai. also sorry, if you could please not use any code formats on script examples, i cant read the whole thing on my phone.

Share this post


Link to post
Share on other sites

use this line to kill any west unit NOT inside the trigger:

{if (!(_x in thisList) AND (side _x) == west) then {player setDammage 1}} foreach allUnits;

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  

×