UE2:Trigger (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE2:ETriggerType (UT2004))
Jump to navigation Jump to search
UT2004 Object >> Actor >> Triggers >> Trigger
Package: 
Engine

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 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)
TT_LivePlayerProximity 
Trigger only activated by live player, untriggered if player dies while touching

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 ()


FindInstigator

function Actor FindInstigator (Actor Other)


FindTriggerActor

function FindTriggerActor ()


IsRelevant

function bool IsRelevant (Actor Other)


PlayerToucherDied

function PlayerToucherDied (Pawn P)


Reset

function Reset ()

Overrides: Actor.Reset


SelfTriggered

function bool SelfTriggered ()

Overrides: Actor.SelfTriggered


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)