![]() |
|
#33
|
||||
|
||||
|
Update
Been doing some "debugging" with a squadie who works in the field and now we're both scratching our heads. We've implimented a gpHUDLogCenter Message just to see if the triggers are actually meeting thier requirements. They definately are and this begs the question why those three flights aren't spawning. This has us both stumped. Code:
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
//base.OnTrigger(missionNumber, shortName, active);
{
GamePlay.gpHUDLogCenter(string.Format("Mission {0}, Name {1}, Active={2}", missionNumber, shortName, active));
}
//Triggers for RAF actions
//Report Examples
//SendScreenMessageTo(Allies, "Message to Red");
//SendScreenMessageTo(Axis, "Message to Blue");
if ((shortName == "LW_Spawn_7A") && active)
{
AiAction action = GamePlay.gpGetAction("LW_Spawn_7A"); //TriggerName
if (action != null)
{
GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));
action.Do();
}
}
if ((shortName == "LW_Spawn_7B") && active)
{
AiAction action = GamePlay.gpGetAction("LW_Spawn_7B"); //TriggerName
if (action != null)
{
GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));
action.Do();
}
}
if ((shortName == "LW_Spawn_7C") && active)
{
AiAction action = GamePlay.gpGetAction("LW_Spawn_7C"); //TriggerName
if (action != null)
{
GamePlay.gpHUDLogCenter(string.Format("We have action {0}", action.Name));
action.Do();
}
}
Frustrating to say the least.
__________________
I5-750 @ 3,8GHz / MSI P55-GD65 / MSI GTX570 Twin Frozr II / 4x2GB G.Skill 1600MHz / Corsair TX650 PSU / RAID 0 2x640GB WD Black W7 Pro x64 SP1 / MS FFB2 +Saitek X45 / Freetrack + NP Clip Pro + PS3 Eye / Samsung BX2450 24" HDMI LED |
|
|