My program doesn't have bugs. It just develops random features.
UE3:Actor (UDK)
Object >> Actor |
Contents
- 1 Constants
- 2 Properties
- 3 Enums
- 4 Structs
- 5 Functions
- 5.1 Static native functions
- 5.1.1 BP2Vect
- 5.1.2 DrawDebugBox
- 5.1.3 DrawDebugCone
- 5.1.4 DrawDebugCoordinateSystem
- 5.1.5 DrawDebugCylinder
- 5.1.6 DrawDebugLine
- 5.1.7 DrawDebugPoint
- 5.1.8 DrawDebugSphere
- 5.1.9 DrawDebugStar
- 5.1.10 DrawDebugString
- 5.1.11 FlushDebugStrings
- 5.1.12 FlushPersistentDebugLines
- 5.1.13 GetBasedPosition
- 5.1.14 GetPackageGuid
- 5.1.15 SetBasedPosition
- 5.1.16 Vect2BP
- 5.2 Other static functions
- 5.3 Iterator functions
- 5.4 Latent functions
- 5.5 Native functions
- 5.6 Events
- 5.7 Other instance functions
- 5.1 Static native functions
- Package:
- Engine
- Known classes within Actor:
- NavigationHandle
- Direct subclasses:
- Brush, Camera, CameraActor, Controller, CrowdAgent, CrowdAgentBase, CrowdAttractor, CrowdReplicationActor, DecalActorBase, DecalManager, DroppedPickup, DynamicSMActor, Emitter, EmitterPool, FluidInfluenceActor, FluidSurfaceActor, FracturedStaticMeshActor, FractureManager, GameCrowdInteractionPoint, GameCrowdReplicationActor, GameExplosionActor, HUD, Info, Inventory, InventoryManager, KAsset, Keypoint, LensFlareSource, Light, MaterialInstanceActor, MatineeActor, NavigationPoint, NavMeshObstacle, Note, NxForceField, ParticleEventManager, Pawn, PhysAnimTestActor, PhysXDestructiblePart, PrefabInstance, Projectile, PylonSeed, RadialBlurActor, RigidBodyBase, SceneCaptureActor, SkeletalMeshActor, SpeedTreeActor, SplineActor, StaticMeshActorBase, StaticMeshActorBasedOnExtremeContent, Trigger, UTAvoidMarker, UTCarriedObject, UTGib, UTJumpBootEffect, UTLinkBeamLight, UTVehicleBoostPad, UTWeaponAttachment, UTWeaponShield, VehicleMovementEffect, GameCrowdPopulationManager
- This class in other games:
- RTNP, U1, UT, UE2Runtime, UT2003, U2, UT2004, U2XMP, UT3
Please help improve this article or section by expanding it. |
Actor: The base class of all actors. Actor is the base class of all gameplay objects. A large number of properties, behaviors and interfaces are implemented in Actor, including:
- Display - Animation - Physics and world interaction - Making sounds - Networking properties - Actor creation and destruction - Actor iterator functions - Message broadcasting
Constants[edit]
List of extra trace flags:
TRACEFLAG_Bullet[edit]
Value: 1
TRACEFLAG_PhysicsVolumes[edit]
Value: 2
Return if a PhysicsVolume is hit.
TRACEFLAG_SkipMovers[edit]
Value: 4
Skip all Movers.
TRACEFLAG_Blocking[edit]
Value: 8
REP_RBLOCATION_ERROR_TOLERANCE_SQ[edit]
Value: 16.0f
when bReplicateRigidBodyLocation is true, the root body of a ragdoll will be replicated but this is not entirely accurate (and isn't meant to be) as the other bodies in the ragdoll may interfere this can then result in jittering from the client constantly trying to apply the replicated value so if the client's error is less than this amount from the replicated value, it will be ignored.
MINFLOORZ[edit]
Value: 0.7
Minimum z value for floor normal (if less, not a walkable floor).
ACTORMAXSTEPHEIGHT[edit]
Value: 35.0
Max height floor walking actor can step up to.
RBSTATE_LINVELSCALE[edit]
Value: 10.0
RBSTATE_ANGVELSCALE[edit]
Value: 1000.0
RB_None[edit]
Value: 0x00
Not set, empty.
RB_NeedsUpdate[edit]
Value: 0x01
If bNewData & RB_NeedsUpdate != 0 then an update is needed.
RB_Sleeping[edit]
Value: 0x02
if bNewData & RB_Sleeping != 0 then this RigidBody needs to sleep.
Properties[edit]
Property group 'Advanced'[edit]
bConsiderAllStaticMeshComponentsForStreaming[edit]
Type: bool
If true, texture streaming code iterates over all StaticMeshComponents found on this actor when building texture streaming information.
bEdShouldSnap[edit]
Type: bool
Snap to grid in editor.
bHiddenEd[edit]
Type: bool
Modifiers: const
Is hidden within the editor at its startup.
bHiddenEdGroup[edit]
Type: bool
Modifiers: const
Is hidden by the group browser.
bLockLocation[edit]
Type: bool
Prevent the actor from being moved in the editor.
TickFrequencyAtEndDistance[edit]
Type: float
When the actor is TickFrequencyDecreaseDistanceEnd from the player, tick at this frequency (in seconds, bigger is less frequent ticks). If this is 0, no decrease in frequency will occur.
Property group 'Attachment'[edit]
Base[edit]
Type: Actor
Modifiers: const
Actor we're standing on.
BaseBoneName[edit]
Type: name
BaseSkelComponent[edit]
Type: SkeletalMeshComponent
bHardAttach[edit]
Type: bool
Modifiers: const
bIgnoreBaseRotation[edit]
Type: bool
bShadowParented[edit]
Type: bool
If TRUE, BaseSkelComponent is used as the shadow parent for this actor.
Property group 'Collision'[edit]
bCanStepUpOn[edit]
Type: bool
If TRUE, PHYS_Walking will attempt to step up onto this object when it hits it.
Default value: True
bCollideComplex[edit]
Type: bool
Ignore Simple Collision on Static Meshes, and collide per Poly.
BlockRigidBody[edit]
Type: bool
Modifiers: const, transient
mirrored copy of CollisionComponent's BlockRigidBody for the Actor property window for LDs (so it's next to CollisionType) purely for editing convenience and not used at all by the physics code.
bNoEncroachCheck[edit]
Type: bool
For encroachers, don't do the overlap check when they move. You will not get touch events for this actor moving, but it is much faster. So if you want touch events from volumes or triggers you need to set this to be FALSE. This is an optimisation for large numbers of PHYS_RigidBody actors for example.
bPathColliding[edit]
Type: bool
this actor should collide (if bWorldGeometry && bBlockActors is true) during path building (ignored if bStatic is true, as actor will always collide during path building).
bPhysRigidBodyOutOfWorldCheck[edit]
Type: bool
If true, do a zero-extent trace each frame from old to new Location when in PHYS_RigidBody. If it hits the world (ie might be tunneling), call FellOutOfWorld.
CollisionComponent[edit]
Type: PrimitiveComponent
Modifiers: editconst
CollisionType[edit]
Type: ECollisionType
Modifiers: const, transient
enum for LDs to select collision options - sets Actor flags and that of our CollisionComponent via PostEditChange().
Default value: COLLIDE_NoCollision
Property group 'Debug'[edit]
bDebug[edit]
Type: bool
Property group 'Display'[edit]
bHidden[edit]
Type: bool
Modifiers: const
If this is True, all PrimitiveComponents of the actor are hidden. If this is false, only PrimitiveComponents with HiddenGame=True are hidden.
DrawScale[edit]
Type: float
Modifiers: const, interp
Scaling factor, 1.0=normal size.
Default value: 1.0
DrawScale3D[edit]
Type: Object.Vector
Modifiers: const, interp
Scaling vector, (1.0,1.0,1.0)=normal size.
Default value:
Member | Value |
---|---|
X | 1.0 |
Y | 1.0 |
Z | 1.0 |
PrePivot[edit]
Type: Object.Vector
Modifiers: const
Offset from box center for drawing.
Property group 'Movement'[edit]
Location[edit]
Type: Object.Vector
Modifiers: const
Actor's location; use Move or SetLocation to change.
Physics[edit]
Type: EPhysics
Modifiers: const
Rotation[edit]
Type: Object.Rotator
Modifiers: const
The actor's rotation; use SetRotation to change.
RotationRate[edit]
Type: Object.Rotator
Change in rotation per second.
[edit]
[edit]
Type: bool
indicates that this Actor can dynamically block AI paths.
Property group 'Object'[edit]
Group[edit]
Type: name
Tag[edit]
Type: name
Actor's tag name.
Property group 'Physics'[edit]
bAllowFluidSurfaceInteraction[edit]
Type: bool
Whether this actor will interact with fluid surfaces or not.
Default value: True
Internal variables[edit]
Enums[edit]
See Actor enums.
Structs[edit]
See Actor structs.
Functions[edit]
Static native functions[edit]
BP2Vect[edit]
This will take the BasedPosition passed and return a Vector for it.
DrawDebugBox[edit]
Draw a debug box.
Note: This is slow. Use for debugging only.
DrawDebugCone[edit]
Draw a debug cone.
Note: This is slow. Use for debugging only.
DrawDebugCoordinateSystem[edit]
Draw Debug coordinate system.
Note: This is slow. Use for debugging only.
DrawDebugCylinder[edit]
Draw a debug cylinder.
Note: This is slow. Use for debugging only.
DrawDebugLine[edit]
Draw a debug line.
Note: This is slow. Use for debugging only.
DrawDebugPoint[edit]
Draw a debug point.
Note: This is slow. Use for debugging only.
DrawDebugSphere[edit]
Draw a debug sphere.
Note: This is slow. Use for debugging only.
DrawDebugStar[edit]
Draw a debug box.
Note: This is slow. Use for debugging only.
DrawDebugString[edit]
Draw Debug string in the world.
Note: This is slow. Use for debugging only.
Parameters:
- TextLocation - location the string should be drawn (NOTE: if base actor is non-null this will be treated as an offset from that actor)
- Text - text to draw
- TestBaseActor - optional) - actor the string should be attached to (none if it should be static)
- Color - optional) - the color of the text to draw
- Duration - optional) - the duration the text should stick around; defauls to forever
FlushDebugStrings[edit]
Clear all debug strings.
FlushPersistentDebugLines[edit]
Flush persistent lines.
GetBasedPosition[edit]
This will take the BasedPosition passed and return a Vector for it.
GetPackageGuid[edit]
Looks up the GUID of a package on disk. The package must NOT be in the autodownload cache. This may require loading the header of the package in question and is therefore slow.
SetBasedPosition[edit]
This will calculate and then set the passed in BasedPosition. This is just modifying the passed in BasedPosition.
Vect2BP[edit]
This will calculate and then set the passed in BasedPosition. This is just modifying the passed in BasedPosition.
Other static functions[edit]
GetLocalString[edit]
ReplaceText[edit]
Iterator functions[edit]
AllActors[edit]
Iterates over all actors in the world, returning all that subclass the specified base class and optionally implement the specified interface.
Note: This is slow. Use one of the more specific iterators whenever possible.
AllOwnedComponents[edit]
Iterates over all components directly or indirectly attached to this actor.
Parameters:
- BaseClass - Only components deriving from BaseClass will be iterated upon.
- OutComponent - The iteration variable.
BasedActors[edit]
Iterates over all actors Attached to this actor, that subclass the specified base class. (very fast)
ChildActors[edit]
Iterates over this actor's Children, that subclass the specified base class. (very fast)
CollidingActors[edit]
Iterates over all colliding actors (bCollideActors) within the specified radius around the specified location, that subclass the specified base class and optionally implement the specified interface. The location defaults to the calling actor's location, for example:
foreach someActor.CollidingActors(class'X', X, 100) { // colliding X within 100 UU radius of someActor }
If the overlap check is used, actors are picked if their collision overlaps the specified radius, otherwise the actor's location must be within the radius.
Note: This iterator uses the collision hash to find actors. That means, for smaller radii it is much faster than AllActors().
ComponentList[edit]
Iterates over this actor's Components, returning those that subclass the specified base class.
DynamicActors[edit]
Iterates over all non-static actors in the world, returning all that subclass the specified base class.
Note: This is somewhat faster than AllActors because it skips the static actors. But while it only starts at the first non-static actor, it usually still is slower than many other iterators because it needs to iterate over the entire remaining actors list.
LocalPlayerControllers[edit]
Iterates over all local PlayerControllers subclassing the specified base class. (very fast)
Typically there is one local PlayerController on each client and listen server and in offline play, but in splitscreen mode there is one PlayerController for each screen. There are no local PlayerControllers on a dedicated server. On servers there may be many PlayerControllers that are no local PlayerControllers. Those will not be returned by this iterator.
OverlappingActors[edit]
Returns colliding actor (bCollideActors==true) which overlap a sphere from location 'Loc' and 'Radius' radius. Like CollidingActors this uses the collision hash so it is fast for smaller radii.
Parameters:
- BaseClass - The Actor returns must be a subclass of this.
- out_Actor - returned Actor at each iteration.
- Radius - Radius of sphere for overlapping check.
- Loc - Center of sphere for overlapping check. (Optional, caller's location is used otherwise).
- bIgnoreHidden - if true, ignore bHidden actors.
TouchingActors[edit]
Iterates over all Touching actors subclassing the specified base class.
TraceActors[edit]
Performs a trace and iterates over all actors on the checked line. The actors are ordered by distance of their hit location.
VisibleActors[edit]
Iterates over all non-hidden actors visible from the specified location, that subclass the specified base class and optionally are located within a certain radius.
Note: This is extremely slow as it iterates the entire actor list and additionally performs a trace on every actor from the list that matches class and radius requirements.
VisibleCollidingActors[edit]
Iterates over all colliding actors (bCollideActors) within the specified radius around the specified location, that subclass the specified base class, are visible from the location and optionally implement the specified interface.
Parameters:
- BaseClass - Only actors subclassing this class are returned.
- Actor - The actors are returned through this variable.
- Radius - Only actors that are located within this radius are returned.
- Loc - The center from which to check. Defaults to the calling actor's location.
- bIgnoreHidden - If true, bHidden actors are skipped.
- Extent - Zero vector to perform a line check, non-zero vector to perform a "thick" trace. Traces are always performed from Loc to the location of the actor.
- bTraceActors - Whether trace for other actors as well, not just for world geometry. Enabling this option makes the check a bit more expensive.
- InterfaceClass - If specified, only actors implementing this interface are returned.
Latent functions[edit]
FinishAnim[edit]
Returns when the animation in the specified node sequence has finished.
Sleep[edit]
Returns after the specified amount of game time has passed.
Native functions[edit]
Events[edit]
See Actor events.