Event Scripting Problem.

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
User avatar
jomni
Posts: 2827
Joined: Mon Nov 19, 2007 12:31 am
Contact:

Event Scripting Problem.

Post by jomni »

Here's what I want to do.

A friendly Inf Plt is under attack by three enemy platoons.
Once we kill the 3 enemy platoons, I want the friendly Inf Plt to teleport out of the area.

The problem is I can't seem to think of a trigger that will make this work. Because if you put multiple triggers for the teleport event, any one of those triggers can potentially activate the action. So I must only use one trigger. If the trigger is destroy, I can only assign one unit but I intend to kill all 3 units. If I use enter area (NOT), it automatically activates during the start of the scenario since the area is empty.
Tomcat84
Posts: 1952
Joined: Wed Jul 10, 2013 5:13 pm

RE: Event Scripting Problem.

Post by Tomcat84 »

When selecting destroy, can you not just only select the unit class, and stop short of selecting the specific unit?

This is a good example why I want an "Event x = true or false" condition. You could make two separate events to destroy two and give the third one condition to have first two true and then teleport.

Another solution would be AND / OR functionality for triggers.
My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )
User avatar
jomni
Posts: 2827
Joined: Mon Nov 19, 2007 12:31 am
Contact:

RE: Event Scripting Problem.

Post by jomni »

Yeah want that too. I guess ill just forget about doing it in the current build.
Post Reply

Return to “Mods and Scenarios”