I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:AttachTrigger (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Triggers >> AttachTrigger
Package: 
Legend

$Author: Mfox $ $Date: 8/20/02 3:42p $ $Revision: 10 $ Name: AttachTrigger.uc Author: Aaron R Leiby Date: 17 Feb 2002 Description: Used to attach actors to actors (like attaching a particle system to a player when he enters/leaves a zone. How to use this class:

Properties[edit]

Property group 'AttachTrigger'[edit]

Attach_Actor[edit]

Type: Actor

actor to attach.

Attach_Class[edit]

Type: name

filter class for source/dest/other/instigator attachment.

Attach_Mode[edit]

Type: EAttachMode

mode for choosing what to attach to.

Attach_Offset[edit]

Type: Object.Vector

attachment offset relative to player.

Attach_PostOffset[edit]

Type: Object.Vector

offset from Attach_Offset.

Attach_Tag[edit]

Type: name

tag of actor to attach to.

bPostRelativeRotation[edit]

Type: bool


bPostRelativeViewRotation[edit]

Type: bool


bRelativeRotation[edit]

Type: bool


bRelativeViewRotation[edit]

Type: bool


TimerDuration[edit]

Type: float


Internal variables[edit]

Attach_Target[edit]

Type: Actor

actor we are currently attached to.

Default values[edit]

Property Value
InitialState 'TriggerControl'

Enums[edit]

EAttachMode[edit]

AM_Player 
the player character.
AM_Other 
the trigger other.
AM_Instigator 
the trigger instigator.
AM_Tag 
tag of any actor.

Functions[edit]

Events[edit]

Destroyed[edit]

event Destroyed ()

Overrides: Actor.Destroyed


PreBeginPlay[edit]

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Tick[edit]

event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions[edit]

AttachActor[edit]

function AttachActor (optional Actor Other, optional Pawn Instigator)


DetachActor[edit]

function DetachActor (optional Actor Other, optional Pawn Instigator)


DoAttachActor[edit]

function DoAttachActor (Actor A)


DoDetachActor[edit]

function DoDetachActor (Actor A)


UpdateActorLocation[edit]

function UpdateActorLocation ()


States[edit]

InitiallyOn[edit]

Modifiers: simulated

InitiallyOn.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


InitiallyOn.DelayedAttach[edit]

simulated function DelayedAttach ()


TriggerControl[edit]

Modifiers: simulated

TriggerControl.Trigger[edit]

simulated function Trigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.Trigger (global)


TriggerControl.UnTrigger[edit]

simulated function UnTrigger (Actor Other, Pawn EventInstigator, optional name EventName)

Overrides: Actor.UnTrigger (global)