## XIDCine
Class GrabbedCorpseTrigger

source: C:\XIII\XIDCine\Classes\GrabbedCorpseTrigger.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Triggers
             |
             +--XIII.XIIITriggers
                |
                +--XIDCine.GrabbedCorpseTrigger

Direct Known Subclasses:None

class GrabbedCorpseTrigger
extends XIII.XIIITriggers

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

Variables
`XIIIPawn` | `CorpseToDetect` otage ou corps assomme a prendre en compte
`bool` | `bActivableParTrigger` attend trigger pour s'activer sinon actif des le debut

Function Summary
`void` | `Touch(Actor Other)`
    //-----------------------------------------------------------
`void` | `Trigger(Actor Other, Pawn EventInstigator)`

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class GrabbedCorpseTrigger extends XIIITriggers;
    00005
    00006
    00007	var() bool bActivableParTrigger;	//attend trigger pour s'activer sinon actif des le debut
    00008	var() XIIIPawn CorpseToDetect;			//otage ou corps assomme a prendre en compte
    00009
    00010	//-----------------------------------------------------------
    00011
    00012	function Touch(Actor Other)
    00013	{
    00014		if ( !bActivableParTrigger)
    00015		{
    00016			if ((( XIIIPlayerPawn(Other) != none ) && ( XIIIPlayerPawn(Other).LHand != none ))
    00017				&& (( CorpseToDetect != none ) && ( XIIIPlayerPawn(Other).LHand.pOnShoulder == CorpseToDetect )))
    00018			{
    00019				TriggerEvent(event,self,XIIIPlayerPawn(Other));
    00020				Disable('Touch');
    00021			}
    00022		}
    00023	}
    00024
    00025	function Trigger( actor Other, pawn EventInstigator )
    00026	{
    00027		bActivableParTrigger = false;
    00028	}
    00029
    00030
    00031
    00032	defaultproperties
    00033	{
    00034	}

End Source Code