i am trying to add this to a script but i keep getting a CS1518 error when compiling (42,21 Where the BOLD type is) I looked it up but still cannot figure out what i have done wrong..trying to get it to kill all the actors upon switching map
Quote:
public override void OnBattleStoped(AiActor actor, int placeIndex)
{
base.OnBattleStoped(actor, placeIndex);
Timeout(1, () =>
{
AiAircraft CurAircraft = AiActor.Place() as AiAircraft;
AiAircraft PrevAircraft = actor as AiAircraft;
if (CurAircraft != PrevAircraft)
{ (actor as AiAircraft).Destroy(); }
}
}
|