View Single Post
  #10  
Old 04-28-2011, 01:15 AM
Thee_oddball Thee_oddball is offline
Approved Member
 
Join Date: Mar 2011
Posts: 812
Default

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(); }
}
}
__________________
Gigabyte Z68
Intel 2500K (@4.3 ghz)212 CM Cooler
8GB Ram
EVGA 660SC (super clocked) 2GB Vram
CORSAIR CMPSU-750TX 750W
64 GB SSD SATA II HD
WIN7 UL 64BIT
Reply With Quote