UE2:TriggeredCamera (U2XMP)
- Package:
- Legend
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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
Overrides: Actor.PreBeginPlay
Tick
Overrides: Actor.Tick
Other instance functions
CalcNewPosition
FixRot
Possess
Retract
UnPossess
UnRetract
Use
Overrides: Inventory.Use
States
TriggerControl
Modifiers: simulated
TriggerControl.Trigger
Overrides: Actor.Trigger (global)
TriggerControl.UnTrigger
Overrides: Actor.UnTrigger (global)
TriggerTimed
Modifiers: simulated
TriggerTimed.Tick
Overrides: Tick (global)
TriggerTimed.Trigger
Overrides: Actor.Trigger (global)
TriggerToggle
Modifiers: simulated
TriggerToggle.Trigger
Overrides: Actor.Trigger (global)