This is just the step by step to create a mission and embbed a .cs file there.
I'm not a coder, mate, so i created those missions on trial and error like you years ago, i don't remember a lot of stuff, sorry
Hope the code guys can help you with those script details.
And here goes the code just for the "destroyed" message i found on an old txt file:
Code:
using System;
using maddox.game;
using maddox.game.world;
public class Mission : maddox.game.AMission
{
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
if("victory".Equals(shortName) && active)
{
GamePlay.gpHUDLogCenter("Target Destroyed");
GamePlay.gpGetTrigger(shortName).Enable=false;
}
}
}
Bookmarks