![]() |
#1
|
|||
|
|||
![]()
Hi all.
I have one cuestion. Can i create 3 or 4 AI groups using only one target pass army trigger ?. If the answer is yes, can anyone send my the script? THX |
#2
|
|||
|
|||
![]()
Yes it's possible.
Code:
using System; using System.Collections; 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("YourTriggerName")) { List<string> actions = new List<string>{"Action1", "Action2", "Action3", "Action4"}; actions.ForEach(item => { AiAction action = GamePlay.gpGetAction(item); if (action != null) action.Do(); }); GamePlay.gpGetTrigger(shortName).Enable = false; // to avoid multible activations } } } |
#3
|
|||
|
|||
![]()
Thanks bery much
![]() ![]() |
![]() |
|
|