## XIDPawn
Class TriggerAlarme

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

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

Direct Known Subclasses:None

class TriggerAlarme
extends XIII.XIIITriggers

    //=============================================================================
    // TriggerAlarme.
    //=============================================================================

Variables
`bool` | `bAlarmeActivated`
`bool` | `bAlarmeTargeted`
`XIIIGameInfo` | `gameinf`
`GenAlerte` | `genalerte`

States
init

Function Summary
`void` | `PlayerTrigger(Actor Other, Pawn EventInstigator)`
    //____________________________________________________________________
`void` | `Trigger(Actor Other, Pawn EventInstigator)`
    //____________________________________________________________________

State init Function Summary

Source Code

    00001	//=============================================================================
    00002	// TriggerAlarme.
    00003	//=============================================================================
    00004	class TriggerAlarme extends XIIITriggers;
    00005
    00006	var xiiigameinfo gameinf;
    00007	var genalerte genalerte;
    00008	var bool bAlarmeTargeted;
    00009	var bool bAlarmeActivated;
    00010
    00011	/*
    00012	//____________________________________________________________________
    00013	function PlayerTrigger(actor Other,pawn EventInstigator )
    00014	{
    00015	    Trigger(Other, EventInstigator);
    00016	}
    00017
    00018	//____________________________________________________________________
    00019	function Trigger(actor Other,pawn EventInstigator )
    00020	{
    00021	   TriggerEvent(event,self,EventInstigator);
    00022	   if (!balarmeActivated) //si player active alarme
    00023	   {
    00024	      genalerte.poteDeclencheAlarme(pawn(other),self);
    00025	   }
    00026	}
    00027		*/
    00028	event Destroyed()
    00029	{
    00030	    local int i;
    00031		 local xiiigameinfo gameinf;
    00032
    00033	    //supression de la alarmlist
    00034	    gameinf=xiiigameinfo(level.game);
    00035		for (i = 0; i < gameinf.AlarmList.Length; i++)
    00036		{
    00037			if (gameinf.AlarmList[i] == self )
    00038			{
    00039				gameinf.AlarmList.Remove(i,1);
    00040				break;
    00041			}
    00042		}
    00043	}
    00044
    00045	auto state init
    00046	{
    00047	begin:
    00048	   sleep(0.5);
    00049	   gameinf=xiiigameinfo(level.game);
    00050	   genalerte=genalerte(gameinf.genalerte);
    00051	   gotostate('');
    00052	}
    00053
    00054
    00055
    00056	defaultproperties
    00057	{
    00058	}

End Source Code