## XIDPawn
Class XIIIAttackSequencer

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

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

Direct Known Subclasses:None

class XIIIAttackSequencer
extends XIII.XIIITriggers

    //=============================================================================
    // XIIIAttackSequencer.
    //=============================================================================

Variables
`GenNMI` | `GenNmiDuPersoASwitcher`
`IAController` | `IACOntr`
`BaseSoldier` | `NMIaSwitcher`
`int` | `NumReseau`

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

Source Code

    00001	//=============================================================================
    00002	// XIIIAttackSequencer.
    00003	//=============================================================================
    00004	class XIIIAttackSequencer extends XIIITriggers;
    00005
    00006	//-----------------------------------------------------------------------------
    00007	// AttackSequencer variables.
    00008	var() basesoldier NMIaSwitcher;
    00009	var() GENNMI GenNmiDuPersoASwitcher;
    00010	var() int NumReseau;
    00011	var IaController IACOntr;
    00012
    00013	// When AttackSequencer is triggered...
    00014	//
    00015	function Trigger( actor Other, pawn EventInstigator )
    00016	{
    00017	//	log(self$"@@@@@@@@  L'AttackSequencer est declenche ");
    00018		Instigator = EventInstigator;
    00019		gotostate('SwitchNumAttack');
    00020	}
    00021
    00022	//
    00023	// SwitchNumAttack.
    00024	//
    00025	state() SwitchNumAttack
    00026	{
    00027		ignores trigger;
    00028
    00029	Begin:
    00030		if (NMIaSwitcher==none && GenNmiDuPersoASwitcher!=none && GenNmiDuPersoASwitcher.instigator!=none)
    00031			 NMIaSwitcher=basesoldier(GenNmiDuPersoASwitcher.instigator);
    00032		If (NMIaSwitcher!=none && !NMIaSwitcher.bisdead)
    00033		{
    00034		   IACOntr=Iacontroller(NMIaSwitcher.controller);
    00035	      if (IACOntr!=none && NMIaSwitcher.NumReseauAttaque!=NumReseau)
    00036	      {
    00037	         NMIaSwitcher.NumReseauAttaque=NumReseau;
    00038	         if (IACOntr.enemy!=none)
    00039	         {
    00040	           if (NumReseau==0)
    00041	              IACONtr.gotostate('attaque');
    00042	           IACOntr.ChercheReseauAttaque();
    00043	         }
    00044	      }
    00045	  }
    00046	  GotoState('');
    00047	}
    00048
    00049
    00050
    00051	defaultproperties
    00052	{
    00053	     bCollideActors=False
    00054	}

End Source Code