## XIDPawn
Class GrenadeTarget

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Keypoint
             |
             +--XIDPawn.GenFRD
                |
                +--XIDPawn.GrenadeTarget

Direct Known Subclasses:Prock03_PointPlanque

class GrenadeTarget
extends XIDPawn.GenFRD

    //=============================================================================
    // GrenadeTarget.
    //=============================================================================

Variables
`bool` | `bActive`

Function Summary
`void` | `Trigger(Actor Other, Pawn EventInstigator)`
`void` | `UnTrigger(Actor Other, Pawn EventInstigator)`

Source Code

    00001	//=============================================================================
    00002	// GrenadeTarget.
    00003	//=============================================================================
    00004	class GrenadeTarget extends GenFRD;
    00005
    00006	var bool   bActive;
    00007
    00008	auto state() XIIITouchActivable
    00009	{
    00010	   event Touch (actor Other)
    00011	   {
    00012	      if (XIIIPlayerPawn(Other)!=none)
    00013			  bactive=true;
    00014	   }
    00015	   event unTouch (actor Other)
    00016	   {
    00017	       if (bactive && XIIIPlayerPawn(Other)!=none)
    00018			   bactive=false;
    00019	   }
    00020	begin:
    00021	}
    00022
    00023	state() TriggerActivable
    00024	{
    00025	     function Trigger( actor Other, pawn EventInstigator )
    00026	     {
    00027	         bactive=true;
    00028	         disable('trigger');
    00029	         enable('UnTrigger');
    00030	     }
    00031	     function UnTrigger( actor Other, pawn EventInstigator )
    00032	     {
    00033	         bactive=false;
    00034	         disable('Untrigger');
    00035	         enable('Trigger');
    00036	     }
    00037	begin:
    00038	}
    00039
    00040
    00041
    00042	defaultproperties
    00043	{
    00044	     bAlwaysRelevant=True
    00045	     bCollideActors=True
    00046	     Texture=Texture'Engine.S_LookTarget'
    00047	     CollisionRadius=100.000000
    00048	     CollisionHeight=100.000000
    00049	}

End Source Code