View Single Post
  #2  
Old 10-31-2012, 12:07 PM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

triggers do work with scripts, if there is an action- ie a spawn associated you must also make it happen in script.

I use something like this
Code:
if ("trigger01".Equals(shortName) && active) // triggers 115 spawn
          { 
                AiAction action = GamePlay.gpGetAction("trigger01");
                if (action != null)
                {
                     action.Do();
                }
                //GamePlay.gpHUDLogCenter("115");      
                GamePlay.gpGetTrigger(shortName).Enable = false;            
          }
remove 2 // on hudlog line and you'll get an on screen confirmation spawn has happened
Reply With Quote