![]() |
|
#4
|
|||
|
|||
|
the orginal OnTrigger is defined in the Battle-Script:
Code:
public virtual void OnTrigger(int missionNumber, string shortName, bool active)
{
if (this.missions.Count > 0)
{
foreach (AMission mission in this.missions)
{
if (mission.IsMissionListener(missionNumber))
{
mission.OnTrigger(missionNumber, shortName, active);
}
}
}
else if (active)
{
AiAction action = this.GamePlay.gpGetAction(ActorName.Full(missionNumber, shortName));
if (action != null)
{
action.Do();
}
}
}
So to get the old behavior you must insert code to spawn the Actors again for example with: Code:
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)
{
action.Do();
}
}
Last edited by FG28_Kodiak; 10-31-2012 at 01:10 PM. |
|
|