Jump to content
Sign in to follow this  
lax

Help with trigger height

Recommended Posts

Hi, I am making a mission where about 30 players are going to be para-dropping and then assaulting a town. I am going to be using the Murk-Spawn script to make the enemy spawn in the town so we can kill them. The C-130 is going to be making multiple passes over the DZ.

The problem is, I don't want to have the C-130 fly over the town, spawn all the enemies, then screw up the mission. I need a way to have the trigger that spawns the enemies only activate if the infantry enters the field not the C-130 or any other Air unit. Is this possible?

Share this post


Link to post
Share on other sites

I'm not terribly knowledgable about scripting but if you're using triggers on the map you could just group it to the group leader and change the type from "vehicle" to "any group member". I believe you would have to do this multiple times for multiple groups.The trigger should only be fired when one of the group members is in the area with this approach.

Share this post


Link to post
Share on other sites
I'm not terribly knowledgable about scripting but if you're using triggers on the map you could just group it to the group leader and change the type from "vehicle" to "any group member". I believe you would have to do this multiple times for multiple groups.The trigger should only be fired when one of the group members is in the area with this approach.

Thats why I was thinking but the problem is that the C-130 is going to be making 2 Passes over the DZ so when it passes through the trigger zone, half of the men will still be inside. I need 2 passes because Im dropping 30 men and we have to use a 1.5km DZ.

Maybe there's a way to make it so nothing in the plane will set off the trigger. Im not sure :/

Share this post


Link to post
Share on other sites

this && ({_x isKindOf "LAND"} count thisList)>0

in the activation filed of your trigger

"LAND" is the CFG class..it can use any level in this list so TANK would work just as well as "2S6M_Tunguska" for example

Share this post


Link to post
Share on other sites
this && (count (thislist unitsBelowHeight 10) > 0)

EDIT: Works perfectly. Thank you very much. You just gave me a very useful tool.

Edited by lax

Share this post


Link to post
Share on other sites

Using "this" with "thislist" is not necessary, because all the activation settings already are applied to the thislist list.

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  

×