View Single Post
  #5  
Old 10-04-2011, 01:43 PM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

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;            
          }
   }
}
At least that works for me in multiplayer enviroment. Maybe you test you map in multiplayer hosting as server? Some triggers do not work on a dedicated server, but I understood that is not your question.
__________________
http://cornedebrouwer.nl/cf48e

Last edited by SNAFU; 10-04-2011 at 01:46 PM.
Reply With Quote