Mostly Harmless

UE3:DynamicSMActor (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Actor >> DynamicSMActor
Package: 
Engine
Direct subclasses:
DynamicSMActor_Spawnable, InterpActor, KActor, UTSimpleDestroyable
This class in other games:
UDK

DynamicSMActor. A non-static version of StaticMeshActor. This class is abstract, but used as a base class for things like KActor and InterpActor. Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties

Property group 'DynamicSMActor'

bPawnCanBaseOn

Type: bool

If a Pawn can be 'based' on this KActor. If not, they will 'bounce' off when they try to.

Default value: True

bSafeBaseIfAsleep

Type: bool

Pawn can base on this KActor if it is asleep -- Pawn will disable KActor physics while based

LightEnvironment

Type: LightEnvironmentComponent

Modifiers: const, editconst


Default value: DynamicLightEnvironmentComponent'MyLightEnvironment'

StaticMeshComponent

Type: StaticMeshComponent

Modifiers: const, editconst


Default value: StaticMeshComponent'StaticMeshComponent0'

Internal variables

ReplicatedMaterial

Type: MaterialInterface

Modifiers: repnotify

used to replicate the material in index 0

ReplicatedMesh

Type: StaticMesh

Modifiers: repnotify

Used to replicate mesh to clients

ReplicatedMeshRotation

Type: Object.Rotator

Modifiers: repnotify


ReplicatedMeshScale3D

Type: Object.Vector

Modifiers: repnotify


ReplicatedMeshTranslation

Type: Object.Vector

Modifiers: repnotify

Extra component properties to replicate

Default values

Property Value
bEdShouldSnap True
bGameRelevant True
bPathColliding True
CollisionComponent StaticMeshComponent'StaticMeshComponent0'
Components[0] DynamicLightEnvironmentComponent'MyLightEnvironment'
Components[1] StaticMeshComponent'StaticMeshComponent0'
RemoteRole ROLE_SimulatedProxy

Subobjects

MyLightEnvironment

Class: Engine.DynamicLightEnvironmentComponent

Property Value
bEnabled False

StaticMeshComponent0

Class: Engine.StaticMeshComponent

Property Value
BlockRigidBody False
LightEnvironment DynamicLightEnvironmentComponent'Engine.Default__DynamicSMActor:MyLightEnvironment'

Functions

Events

Attach

event Attach (Actor Other)

Overrides: Actor.Attach

If pawn is attached while asleep, turn off physics while pawn is on it

Detach

event Detach (Actor Other)

Overrides: Actor.Detach

If pawn is detached, turn back on physics (make sure no other pawns are based on it)

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


ReplicatedEvent

simulated event ReplicatedEvent (name VarName)

Overrides: Actor.ReplicatedEvent


Other instance functions

CanBasePawn

simulated function bool CanBasePawn (Pawn P)

Query to see if this DynamicSMActor can base the given Pawn

OnSetMaterial

function OnSetMaterial (SeqAct_SetMaterial Action)


OnSetStaticMesh

function OnSetStaticMesh (SeqAct_SetStaticMesh Action)


SetStaticMesh

function SetStaticMesh (StaticMesh NewMesh, optional Object.Vector NewTranslation, optional Object.Rotator NewRotation, optional Object.Vector NewScale3D)