UE2:TriggeredCamera (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:11, 17 May 2008 by Wormbo (talk | contribs) (Auto-generated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
U2XMP Object >> Actor >> Inventory >> TriggeredCamera
Package:
Legend

TriggeredCamera.uc $Author: Mfox $ $Date: 6/25/02 11:38p $ $Revision: 3 $

Description: Triggerable camera for third person cinematics. How to use this class:

+ Place in a level. + Connect to a trigger. + Set InitialState (TriggerToggle, TriggerControl, TriggerTimed) - Set TimerDuration for TriggerTimed. + Set Event to the Actor the camera will focus on. - If no event is set, the camera uses the player that triggered the camera as its focus. - Set bDirectional if you would rather the direction align with the rotation the camera is placed with in UnrealEd. + Set SpeedFactor to adjust how fast the camera moves from the triggerer to the DesiredLocation (location placed in the editor). If SpeedFactor is zero, the camera will instantaeously move to the desired location. + Set FollowTag (under Events) to the Tag of some Actor in your level if you want the camera to follow that Actor around. (Defaults to the location that you placed the camera in the level.) -- example: Tag a moving brush. + Set the RetractSpeedFactor to match how fast you want the camera to retract. Like SpeedFactor, larger numbers means the camera goes slower, zero mean instantaeous. + RetractAccel ensures that the camera will eventually overtake the player. This prevents the player from being able to out-run the camera when it is retracting. Set this to a high number if you want the camera to overtake the player faster. Also, remember that you can use a lower RetractSpeedFactor if you just want the camera to feel faster. + Set bRotRetract to false if you just want the camera to zoom into the player's head. If this variable is set to true, the rotation of the camera will try to match that of the player's view rotation to give a more seamless perspective change.

Properties

Property group 'Events'

FollowTag

Type: name


Property group 'TriggeredCamera'

bRotRetract

Type: bool

Should we match the player's viewrotation when we retract?

Default value: True

RetractAccel

Type: float


Default value: 250.0

RetractSpeedFactor

Type: float


SpeedFactor

Type: float


Default value: 10.0

TimerDuration

Type: float


Internal variables

bOn

Type: bool


bRetract

Type: bool


DesiredCameraLocation

Type: Object.Vector


DesiredCameraRotation

Type: Object.Rotator


Focus

Type: Actor


FollowActor

Type: Actor


InitialLocation

Type: Object.Vector


InitialRotation

Type: Object.Rotator


InitialSpeedFactor

Type: float


LastCameraLocation

Type: Object.Vector


LastCameraRotation

Type: Object.Rotator


RetractSpeed

Type: float


TriggerTime

Type: float


Viewer

Type: Pawn


Default values

Property Value
bGameRelevant True
CollisionHeight 0.0
CollisionRadius 0.0
DrawType DT_Sprite
Texture Texture'Engine.S_Camera'

Functions

Events

PreBeginPlay

simulated event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Tick

simulated event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

CalcNewPosition

simulated function CalcNewPosition (float DeltaTime)


FixRot

simulated function Object.Rotator FixRot (Object.Rotator Rot, Object.Rotator RefRot)


Possess

simulated function Possess (Pawn InViewer)


Retract

simulated function Retract ()


UnPossess

simulated function UnPossess (Pawn InViewer)


UnRetract

simulated function UnRetract ()


Use

simulated function Use (float Value)

Overrides: Inventory.Use


States

TriggerControl

Modifiers: simulated

TriggerControl.Trigger

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

Overrides: Actor.Trigger (global)


TriggerControl.UnTrigger

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

Overrides: Actor.UnTrigger (global)


TriggerTimed

Modifiers: simulated

TriggerTimed.Tick

simulated event Tick (float DeltaTime)

Overrides: Tick (global)


TriggerTimed.Trigger

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

Overrides: Actor.Trigger (global)


TriggerToggle

Modifiers: simulated

TriggerToggle.Trigger

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

Overrides: Actor.Trigger (global)