Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

UE2:Trigger (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Triggers >> Trigger
Package: 
Engine
Direct subclasses:
EarthquakeTrigger, ZoneTrigger, ShakeTrigger, TeamTrigger, TimedTrigger
This class in other games:
RTNP, U1, UT, UT2003, UE2Runtime, UT2004, U2XMP, UT3, UDK

Trigger: senses things happening in its proximity and generates sends Trigger/UnTrigger to actors whose names match 'EventName'.

Properties

Property group 'Trigger'

bInitiallyActive

Type: bool


Default value: True

bTriggerOnceOnly

Type: bool


ClassProximityType

Type: class<Actor>


DamageThreshold

Type: float


Message

Type: string

Modifiers: localized


RepeatTriggerTime

Type: float

if > 0, repeat trigger message at this interval is still touching other

ReTriggerDelay

Type: float

minimum time before trigger can be triggered again

TriggerType

Type: ETriggerType


Internal variables

bSavedInitialActive

Type: bool


bSavedInitialCollision

Type: bool


TriggerActor

Type: Actor

actor that triggers this trigger

TriggerActor2

Type: Actor


TriggerTime

Type: float


Default values

Property Value
InitialState NormalTrigger
Texture Texture'Engine.S_Trigger'

Enums

ETriggerType

TT_PlayerProximity 
Trigger is activated by player proximity.
TT_PawnProximity 
Trigger is activated by any pawn's proximity
TT_ClassProximity 
Trigger is activated by actor of ClassProximityType only
TT_AnyProximity 
Trigger is activated by any actor in proximity.
TT_Shoot 
Trigger is activated by player shooting it.
TT_HumanPlayerProximity 
Trigger activated by human player (not bot)

Functions

Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


SpecialHandling

event Actor SpecialHandling (Pawn Other)

Overrides: Actor.SpecialHandling


TakeDamage

event TakeDamage (int Damage, Pawn instigatedBy, Object.Vector hitlocation, Object.Vector momentum, class<DamageTypedamageType)

Overrides: Actor.TakeDamage


Timer

event Timer ()

Overrides: Actor.Timer


Touch

event Touch (Actor Other)

Overrides: Actor.Touch


UnTouch

event UnTouch (Actor Other)

Overrides: Actor.UnTouch


Other instance functions

CheckTouchList

function CheckTouchList ()


FindTriggerActor

function FindTriggerActor ()


GetInitiallyActive

function bool GetInitiallyActive ()


IsRelevant

function bool IsRelevant (Actor Other)


Reset

function Reset ()

Overrides: Actor.Reset


SetInitiallyActive

function SetInitiallyActive (bool bActive)


States

NormalTrigger

OtherTriggerToggles

OtherTriggerToggles.Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)


OtherTriggerTurnsOff

OtherTriggerTurnsOff.Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)


OtherTriggerTurnsOn

OtherTriggerTurnsOn.Trigger

event Trigger (Actor Other, Pawn EventInstigator)

Overrides: Actor.Trigger (global)