
04-24-2011, 04:52 PM
|
Approved Member
|
|
Join Date: Mar 2011
Posts: 812
|
|
Quote:
Originally Posted by Blackrat
Kewl Oddball, the multi commands in one script now works?
|
you mean like this? this is a scipt from a mission Doghouse3 made
Quote:
using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;
public class Mission : AMission
{
public override void OnTickGame()
{
if (Time.tickCounter() % 126000 == 18000)
{
GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/128BoBsmBombersv1_0.mis");
GamePlay.gpHUDLogCenter("Intel: 12x Wellington's, 10,000 ft heading to German airfields from NE!");
}
if(Time.tickCounter() % 162000 == 54000)
{
GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/128BoBsmBombersv1a_0.mis");
GamePlay.gpHUDLogCenter("Intel: 12x HE111's, 10,000 ft heading to English airfields from S!");
}
}
public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
{
base.OnPlaceLeave(player, actor, placeIndex);
Timeout(1, () =>
{
AiAircraft CurAircraft = player.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
|