View Single Post
  #2  
Old 11-04-2012, 12:54 PM
FG28_Kodiak FG28_Kodiak is offline
Senior Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Code:
using System;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;

public class Mission : AMission
{

    public override void OnBattleStarted()
    {
        base.OnBattleStarted();
        
        MissionNumberListener = -1;
    }



    public override void OnTrigger(int missionNumber, string shortName, bool active)
    {
        base.OnTrigger(missionNumber, shortName, active);


        if (shortName.Equals("TimerTriggerName"))
        {
            GamePlay.gpHUDLogCenter("yourMessage");
        }


        AiAction action = GamePlay.gpGetAction(ActorName.Full(missionNumber, shortName));

        if (action != null)
        {
            action.Do();
        }
    }
}
Change TimerTriggerName and yourMessage to your needs.
Reply With Quote