Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
Difference between revisions of "UE3:Actor (UDK)"
m (→Latent functions) |
m |
||
Line 4: | Line 4: | ||
| abstract = yes | | abstract = yes | ||
}} | }} | ||
− | {{ | + | {{expand}} |
Actor: The base class of all actors. | Actor: The base class of all actors. | ||
Actor is the base class of all gameplay objects. | Actor is the base class of all gameplay objects. | ||
Line 19: | Line 19: | ||
==Constants== | ==Constants== | ||
+ | List of extra trace flags: | ||
====TRACEFLAG_Bullet==== | ====TRACEFLAG_Bullet==== | ||
'''Value:''' 1 | '''Value:''' 1 | ||
− | + | <!-- enter constant description --> | |
====TRACEFLAG_PhysicsVolumes==== | ====TRACEFLAG_PhysicsVolumes==== | ||
'''Value:''' 2 | '''Value:''' 2 | ||
− | + | Return if a [[PhysicsVolume]] is hit. | |
====TRACEFLAG_SkipMovers==== | ====TRACEFLAG_SkipMovers==== | ||
'''Value:''' 4 | '''Value:''' 4 | ||
− | + | Skip all [[Mover]]s. | |
====TRACEFLAG_Blocking==== | ====TRACEFLAG_Blocking==== | ||
Line 45: | Line 46: | ||
but this is not entirely accurate (and isn't meant to be) as the other bodies in the ragdoll may interfere | 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 | 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 | + | so if the client's error is less than this amount from the replicated value, it will be ignored. |
====MINFLOORZ==== | ====MINFLOORZ==== | ||
'''Value:''' 0.7 | '''Value:''' 0.7 | ||
− | + | Minimum z value for floor normal (if less, not a walkable floor). | |
====ACTORMAXSTEPHEIGHT==== | ====ACTORMAXSTEPHEIGHT==== | ||
'''Value:''' 35.0 | '''Value:''' 35.0 | ||
− | + | Max height floor walking actor can step up to. | |
====RBSTATE_LINVELSCALE==== | ====RBSTATE_LINVELSCALE==== | ||
Line 70: | Line 71: | ||
'''Value:''' 0x00 | '''Value:''' 0x00 | ||
− | Not set, empty | + | Not set, empty. |
====RB_NeedsUpdate==== | ====RB_NeedsUpdate==== | ||
'''Value:''' 0x01 | '''Value:''' 0x01 | ||
− | If bNewData & RB_NeedsUpdate != 0 then an update is needed | + | If bNewData & RB_NeedsUpdate != 0 then an update is needed. |
====RB_Sleeping==== | ====RB_Sleeping==== | ||
'''Value:''' 0x02 | '''Value:''' 0x02 | ||
− | if bNewData & RB_Sleeping != 0 then this RigidBody needs to sleep | + | if bNewData & RB_Sleeping != 0 then this RigidBody needs to sleep. |
==Properties== | ==Properties== | ||
Line 116: | Line 117: | ||
'''Type:''' [[float]] | '''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 | + | 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'=== | ===Property group 'Attachment'=== | ||
Line 157: | Line 158: | ||
'''Type:''' [[bool]] | '''Type:''' [[bool]] | ||
− | If TRUE, PHYS_Walking will attempt to step up onto this object when it hits it | + | If TRUE, PHYS_Walking will attempt to step up onto this object when it hits it. |
'''Default value:''' True | '''Default value:''' True | ||
Line 172: | Line 173: | ||
mirrored copy of CollisionComponent's BlockRigidBody for the Actor property window for LDs (so it's next to CollisionType) | 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 | + | purely for editing convenience and not used at all by the physics code. |
====bNoEncroachCheck==== | ====bNoEncroachCheck==== | ||
Line 184: | Line 185: | ||
'''Type:''' [[bool]] | '''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) | + | 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==== | ====bPhysRigidBodyOutOfWorldCheck==== | ||
Line 203: | Line 204: | ||
'''[[Variables#Modifiers|Modifiers]]:''' const, transient | '''[[Variables#Modifiers|Modifiers]]:''' const, transient | ||
− | enum for LDs to select collision options - sets Actor flags and that of our CollisionComponent via PostEditChange() | + | enum for LDs to select collision options - sets Actor flags and that of our CollisionComponent via PostEditChange(). |
'''Default value:''' {{tl|ECollisionType||Actor enums|COLLIDE_NoCollision}} | '''Default value:''' {{tl|ECollisionType||Actor enums|COLLIDE_NoCollision}} | ||
Line 290: | Line 291: | ||
'''Type:''' [[bool]] | '''Type:''' [[bool]] | ||
− | indicates that this Actor can dynamically block AI paths | + | indicates that this Actor can dynamically block AI paths. |
===Property group 'Object'=== | ===Property group 'Object'=== | ||
Line 325: | Line 326: | ||
{{code|native static final function {{tl|Vector|Object|structs}} '''BP2Vect''' ({{tl|BasedPosition||Actor structs}} '''BP''') const}} | {{code|native static final function {{tl|Vector|Object|structs}} '''BP2Vect''' ({{tl|BasedPosition||Actor structs}} '''BP''') const}} | ||
− | This will take the BasedPosition passed and return a Vector for it | + | This will take the BasedPosition passed and return a Vector for it. |
====DrawDebugBox==== | ====DrawDebugBox==== | ||
{{code|native static final function '''DrawDebugBox''' ({{tl|Vector|Object|structs}} '''Center''', {{tl|Vector|Object|structs}} '''Extent''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugBox''' ({{tl|Vector|Object|structs}} '''Center''', {{tl|Vector|Object|structs}} '''Extent''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug box | + | Draw a debug box. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugCone==== | ====DrawDebugCone==== | ||
{{code|native static final function '''DrawDebugCone''' ({{tl|Vector|Object|structs}} '''Origin''', {{tl|Vector|Object|structs}} '''Direction''', [[float]] '''Length''', [[float]] '''AngleWidth''', [[float]] '''AngleHeight''', [[int]] '''NumSides''', {{tl|Color|Object|structs}} '''DrawColor''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugCone''' ({{tl|Vector|Object|structs}} '''Origin''', {{tl|Vector|Object|structs}} '''Direction''', [[float]] '''Length''', [[float]] '''AngleWidth''', [[float]] '''AngleHeight''', [[int]] '''NumSides''', {{tl|Color|Object|structs}} '''DrawColor''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug cone | + | Draw a debug cone. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugCoordinateSystem==== | ====DrawDebugCoordinateSystem==== | ||
{{code|native static final function '''DrawDebugCoordinateSystem''' ({{tl|Vector|Object|structs}} '''AxisLoc''', {{tl|Rotator|Object|structs}} '''AxisRot''', [[float]] '''Scale''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugCoordinateSystem''' ({{tl|Vector|Object|structs}} '''AxisLoc''', {{tl|Rotator|Object|structs}} '''AxisRot''', [[float]] '''Scale''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw Debug coordinate system | + | Draw Debug coordinate system. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugCylinder==== | ====DrawDebugCylinder==== | ||
{{code|native static final function '''DrawDebugCylinder''' ({{tl|Vector|Object|structs}} '''Start''', {{tl|Vector|Object|structs}} '''End''', [[float]] '''Radius''', [[int]] '''Segments''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugCylinder''' ({{tl|Vector|Object|structs}} '''Start''', {{tl|Vector|Object|structs}} '''End''', [[float]] '''Radius''', [[int]] '''Segments''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug cylinder | + | Draw a debug cylinder. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugLine==== | ====DrawDebugLine==== | ||
{{code|native static final function '''DrawDebugLine''' ({{tl|Vector|Object|structs}} '''LineStart''', {{tl|Vector|Object|structs}} '''LineEnd''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugLine''' ({{tl|Vector|Object|structs}} '''LineStart''', {{tl|Vector|Object|structs}} '''LineEnd''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug line | + | Draw a debug line. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugPoint==== | ====DrawDebugPoint==== | ||
{{code|native static final function '''DrawDebugPoint''' ({{tl|Vector|Object|structs}} '''Position''', [[float]] '''Size''', {{tl|LinearColor|Object|structs}} '''PointColor''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugPoint''' ({{tl|Vector|Object|structs}} '''Position''', [[float]] '''Size''', {{tl|LinearColor|Object|structs}} '''PointColor''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug point | + | Draw a debug point. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugSphere==== | ====DrawDebugSphere==== | ||
{{code|native static final function '''DrawDebugSphere''' ({{tl|Vector|Object|structs}} '''Center''', [[float]] '''Radius''', [[int]] '''Segments''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugSphere''' ({{tl|Vector|Object|structs}} '''Center''', [[float]] '''Radius''', [[int]] '''Segments''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug sphere | + | Draw a debug sphere. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugStar==== | ====DrawDebugStar==== | ||
{{code|native static final function '''DrawDebugStar''' ({{tl|Vector|Object|structs}} '''Position''', [[float]] '''Size''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | {{code|native static final function '''DrawDebugStar''' ({{tl|Vector|Object|structs}} '''Position''', [[float]] '''Size''', [[byte]] '''R''', [[byte]] '''G''', [[byte]] '''B''', optional [[bool]] '''bPersistentLines''') const}} | ||
− | Draw a debug box | + | Draw a debug box. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
====DrawDebugString==== | ====DrawDebugString==== | ||
{{code|native static final function '''DrawDebugString''' ({{tl|Vector|Object|structs}} '''TextLocation''', coerce [[string]] '''Text''', optional {{cl|Actor}} '''TestBaseActor''', optional {{tl|Color|Object|structs}} '''TextColor''', optional [[float]] '''Duration''') const}} | {{code|native static final function '''DrawDebugString''' ({{tl|Vector|Object|structs}} '''TextLocation''', coerce [[string]] '''Text''', optional {{cl|Actor}} '''TestBaseActor''', optional {{tl|Color|Object|structs}} '''TextColor''', optional [[float]] '''Duration''') const}} | ||
− | Draw Debug string in the world | + | Draw Debug string in the world. |
+ | |||
+ | '''Note:''' This is slow. Use for debugging only. | ||
'''Parameters:''' | '''Parameters:''' | ||
Line 382: | Line 401: | ||
{{code|native static final function '''FlushDebugStrings''' () const}} | {{code|native static final function '''FlushDebugStrings''' () const}} | ||
− | + | Clear all debug strings. | |
====FlushPersistentDebugLines==== | ====FlushPersistentDebugLines==== | ||
{{code|native static final function '''FlushPersistentDebugLines''' () const}} | {{code|native static final function '''FlushPersistentDebugLines''' () const}} | ||
− | Flush persistent lines | + | Flush persistent lines. |
====GetBasedPosition==== | ====GetBasedPosition==== | ||
{{code|native static final function {{tl|Vector|Object|structs}} '''GetBasedPosition''' ({{tl|BasedPosition||Actor structs}} '''BP''') const}} | {{code|native static final function {{tl|Vector|Object|structs}} '''GetBasedPosition''' ({{tl|BasedPosition||Actor structs}} '''BP''') const}} | ||
− | This will take the BasedPosition passed and return a Vector for it | + | This will take the BasedPosition passed and return a Vector for it. |
====GetPackageGuid==== | ====GetPackageGuid==== |
Latest revision as of 19:01, 10 November 2010
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.