## XIDPawn
Class XIIILostEnemyTrigger

source: C:\XIII\XIDPawn\Classes\XIIILostEnemyTrigger.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Triggers
             |
             +--XIII.XIIITriggers
                |
                +--XIDPawn.XIIILostEnemyTrigger

Direct Known Subclasses:None

class XIIILostEnemyTrigger
extends XIII.XIIITriggers

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`IAController` | `IACOntr`
`BaseSoldier` | `NMIaSwitcher`

Function Summary
`void` | `Trigger(Actor Other, Pawn EventInstigator)`
    // When XIIILostEnemyTrigger is triggered...
    //

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIILostEnemyTrigger extends XIIITriggers;
    00005
    00006	var() basesoldier NMIaSwitcher;
    00007	var IaController IACOntr;
    00008
    00009
    00010	// When XIIILostEnemyTrigger is triggered...
    00011	//
    00012	function Trigger(actor Other, pawn EventInstigator )
    00013	{
    00014		//log(self$"@@@@@@@@  L'AttackSequencer est declenche ");
    00015		Instigator = EventInstigator;
    00016		gotostate('LostEnemy');
    00017	}
    00018
    00019	//
    00020	// SwitchNumAttack.
    00021	//
    00022	state() LostEnemy
    00023	{
    00024		ignores trigger;
    00025
    00026	Begin:
    00027		If (NMIaSwitcher!=none && !NMIaSwitcher.bisdead)
    00028		{
    00029		  IACOntr=Iacontroller(NMIaSwitcher.controller);
    00030	    if (IACOntr!=none && IACOntr.NiveauAlerte==2)
    00031	    {
    00032	        IACOntr.enemy=none;
    00033	        if (IACOntr.lastAttackpoint.bAccroupi)
    00034	           NMIaSwitcher.ShouldCrouch(true);
    00035	        IaCOntr.bCampeversSafePoint=true;
    00036			  IAContr.HalteAuFeu();
    00037	        IaCOntr.gotostate('restesurplace');
    00038	    }
    00039	  }
    00040		GotoState('');
    00041	}
    00042
    00043
    00044
    00045
    00046
    00047	defaultproperties
    00048	{
    00049	}

End Source Code