![]() |
|
#2
|
|||
|
|||
|
The Trigger-Action was broken a few patchs ago. You have to activate the Action by script.
First define Triggers as usual (Groupdead Triggers must have same Name as the Spawn-Action) and then implement the following into your script: Code:
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
if ("YourTriggerName".Equals(shortName) && active)
{
AiAction action = GamePlay.gpGetAction("YourActionName"); //same as YourTriggerName
GamePlay.gpLogServer(null, " Your Trigger was triggered ", new object[] { }); //Testmessage
if (action != null)
{
action.Do();
}
GamePlay.gpGetTrigger(shortName).Enable = false;
}
}
__________________
http://cornedebrouwer.nl/cf48e Last edited by SNAFU; 09-27-2011 at 11:39 AM. |
| Thread Tools | |
| Display Modes | |
|
|