View Single Post
  #1  
Old 03-21-2012, 08:25 AM
hc_wolf hc_wolf is offline
Approved Member
 
Join Date: Jul 2010
Posts: 439
Default Can you group multiple [Action] to spawn from one time [Trigger]?

I want to use one time trigger to spawn multiple groups in an [ACTION] spawn

Is there a way you can spawn multiple actions when the time trigger G17 is active?



[Trigger]
G17 TTime 60


[Action]
action17 ASpawnGroup 1 BoB_LW_KuFlGr_706.01
action18 ASpawnGroup 1 BoB_LW_KuFlGr_706.04
action19 ASpawnGroup 1 BoB_LW_KuFlGr_706.02



Code:
base.OnTrigger(missionNumber, shortName, active);

		if ("G17".Equals(shortName) && active)
        {
            AiAction action = GamePlay.gpGetAction("action17");
            if (action != null)
            {
                action.Do();
            }
__________________
__________________
Win7, 64bit Ultra
Asus P8P67Pro MB
Intel i7-2600K
Coursair 16GB (4x 4GB), DDR3-1600MHz
Gainward Nvidia 580GTX 3GB DDR5
850-Watt Modular Power Supply
WIN7 and COD on Gskill SSD 240GB
40" Panasonic LCD
TrackIR5 +
Thrustmaster Warthog stick, throttle & pedals
Reply With Quote