![]() |
|
#5
|
|||
|
|||
|
Mmh, you are using a script like the following and named your triggers and actions accordingly, also in the script? (Triggername = Actionname)
Code:
using System;
using System.Text;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;
public class Mission : AMission
{
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
if ("YourTriggerName".Equals(shortName) && active) //Edit "YourTriggerName"
{
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; 10-04-2011 at 02:46 PM. |
|
|