I love the smell of UnrealEd crashing in the morning. – tarquin

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[edit]

Property group 'DynamicSMActor'[edit]

bPawnCanBaseOn[edit]

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[edit]

Type: bool

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

LightEnvironment[edit]

Type: LightEnvironmentComponent

Modifiers: const, editconst


Default value: DynamicLightEnvironmentComponent'MyLightEnvironment'

StaticMeshComponent[edit]

Type: StaticMeshComponent

Modifiers: const, editconst


Default value: StaticMeshComponent'StaticMeshComponent0'

Internal variables[edit]

ReplicatedMaterial[edit]

Type: MaterialInterface

Modifiers: repnotify

used to replicate the material in index 0

ReplicatedMesh[edit]

Type: StaticMesh

Modifiers: repnotify

Used to replicate mesh to clients

ReplicatedMeshRotation[edit]

Type: Object.Rotator

Modifiers: repnotify


ReplicatedMeshScale3D[edit]

Type: Object.Vector

Modifiers: repnotify


ReplicatedMeshTranslation[edit]

Type: Object.Vector

Modifiers: repnotify

Extra component properties to replicate

Default values[edit]

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

Subobjects[edit]

MyLightEnvironment[edit]

Class: Engine.DynamicLightEnvironmentComponent

Property Value
bEnabled False

StaticMeshComponent0[edit]

Class: Engine.StaticMeshComponent

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

Functions[edit]

Events[edit]

Attach[edit]

event Attach (Actor Other)

Overrides: Actor.Attach

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

Detach[edit]

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[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


ReplicatedEvent[edit]

simulated event ReplicatedEvent (name VarName)

Overrides: Actor.ReplicatedEvent


Other instance functions[edit]

CanBasePawn[edit]

simulated function bool CanBasePawn (Pawn P)

Query to see if this DynamicSMActor can base the given Pawn

OnSetMaterial[edit]

function OnSetMaterial (SeqAct_SetMaterial Action)


OnSetStaticMesh[edit]

function OnSetStaticMesh (SeqAct_SetStaticMesh Action)


SetStaticMesh[edit]

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