Thread: New coop script
View Single Post
Old 10-28-2012, 08:02 AM
FG28_Kodiak FG28_Kodiak is offline
Senior Member
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884

Originally Posted by Punch_145 View Post
Very nice..Tried this and looks very promising only problem for me is if I use your script, Triggers and Actions seem to stop working? or am I doing something wrong?
You should add these lines to the script (insert it before the last bracket):
    public override void OnTrigger(int missionNumber, string shortName, bool active)
        base.OnTrigger(missionNumber, shortName, active);

        AiAction action = GamePlay.gpGetAction(ActorName.Full(missionNumber, shortName));
        if (action != null)
So the triggers and actions works like expected
Reply With Quote