## Engine
Class UseTrigger

source: C:\XIII\Engine\Classes\UseTrigger.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Triggers
             |
             +--Engine.UseTrigger

Direct Known Subclasses:None

class UseTrigger
extends Engine.Triggers

    //=============================================================================
    // UseTrigger: if a player stands within proximity of this trigger, and hits Use,
    // it will send Trigger/UnTrigger to actors whose names match 'EventName'.
    //=============================================================================

Variables
`string` | `Message`

Function Summary
`void` | `Touch(Actor Other)`
`void` | `UsedBy(Pawn user)`

Source Code

    00001	//=============================================================================
    00002	// UseTrigger: if a player stands within proximity of this trigger, and hits Use,
    00003	// it will send Trigger/UnTrigger to actors whose names match 'EventName'.
    00004	//=============================================================================
    00005	class UseTrigger extends Triggers;
    00006
    00007	var() localized string Message;
    00008
    00009	function UsedBy( Pawn user )
    00010	{
    00011		TriggerEvent(Event, user, user);
    00012	}
    00013
    00014	function Touch( Actor Other )
    00015	{
    00016		if( (Message != "") && (Other.Instigator != None) )
    00017			// Send a string message to the toucher.
    00018			Other.Instigator.ClientMessage( Message );
    00019	}
    00020
    00021	defaultproperties
    00022	{
    00023	}

End Source Code