Jump to content
Sign in to follow this  
dixon13

Kill script won't activate

Recommended Posts

I am trying to make a simple kill script that will only kill ground units and not aircraft through triggers. I have two triggers. One for Independent faction and the other for Opfor. This trigger is meant to be a base protector so that enemy units won't spawn in my base for MSO.

This the trigger...

Activation: Opfor/Independent , Repeatedly

Present

Timeout

Condition:

this; round (time %1) == 1 && object isKindOf "Land";

Activation:

{_x setDamage 1} foreach thisList; {deletevehicle _x} foreach thisList;

That's all I have so far.

My trigger works when my Condition is

this; round (time %1) == 1;

It works but aircraft get killed.

Please I need help. I have been trying to figure this out for the last 5 hours. I have rummaged through the internet for something similar to this but I have not found anything. Please help is much appreciated.

Share this post


Link to post
Share on other sites

condition:

("LandVehicle" countType thislist  > 0) && ((getpos (thislist select 0)) select 2 < 1)

- select 2 < 1 , 1 is altitude .means count anything is under 1 meter altitude .

- Just set trigger Repeatedly, no need to run any other code in condition to repeat it

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  

×