The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:Actor instance functions (UT3)
Contents
- 1 Instance functions
- 1.1 ActivateEventClass
- 1.2 CalcCamera
- 1.3 CanSplash
- 1.4 CheckForErrors
- 1.5 CheckHitInfo
- 1.6 CheckMaxEffectDistance
- 1.7 ClearLatentAction
- 1.8 DebugFreezeGame
- 1.9 DisplayDebug
- 1.10 DoKismetAttachment
- 1.11 EffectIsRelevant
- 1.12 FindActorsOfClass
- 1.13 FindEventsOfClass
- 1.14 FindGoodEndView
- 1.15 ForceNetRelevant
- 1.16 GetDebugName
- 1.17 GetHumanReadableName
- 1.18 GetItemName
- 1.19 GetLocationStringFor
- 1.20 GetPhysicsName
- 1.21 HealDamage
- 1.22 HurtRadius
- 1.23 IsActorPlayingFaceFXAnim
- 1.24 IsInPain
- 1.25 IsInVolume
- 1.26 IsStationary
- 1.27 KilledBy
- 1.28 MatchStarting
- 1.29 NotifyLocalPlayerTeamReceived
- 1.30 OnAttachToActor
- 1.31 OnCauseDamage
- 1.32 OnChangeCollision
- 1.33 OnDestroy
- 1.34 OnHealDamage
- 1.35 OnMakeNoise
- 1.36 OnSetBlockRigidBody
- 1.37 OnSetPhysics
- 1.38 OnTeleport
- 1.39 OnToggleHidden
- 1.40 PawnBaseDied
- 1.41 PickedUpBy
- 1.42 PlayTeleportEffect
- 1.43 PostTeleport
- 1.44 PreTeleport
- 1.45 SetGRI
- 1.46 StopsProjectile
- 1.47 TakeRadiusDamage
- 1.48 TimeSince
- 1.49 TriggerEventClass
- 1.50 UsedBy
- Actor instance functions in other games:
- U2, U2XMP, UT2004, UDK
- Other member categories for this class:
- events, internal variables, native functions, structs
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. |
Instance functions[edit]
ActivateEventClass[edit]
Iterates through the given list of events and looks for all matching events, activating them as found.
Returns:
- true if an event was found and activated
CalcCamera[edit]
Calculate camera view point, when viewing this actor.
Parameters:
- fDeltaTime - delta time seconds since last update
- out_CamLoc - Camera Location
- out_CamRot - Camera Rotation
- out_FOV - Field of View
Returns:
- true if Actor should provide the camera point of view.
CanSplash[edit]
CheckForErrors[edit]
CheckHitInfo[edit]
Make sure we pass along a valid HitInfo struct for damage. The main reason behind this is that SkeletalMeshes do require a BoneName to receive and process an impulse... So if we don't have access to it (through touch() or for any non trace damage results), we need to perform an extra trace call().
Parameters:
- HitInfo - initial structure to check
- FallBackComponent - PrimitiveComponent to use if HitInfo.HitComponent is none
- Dir - Direction to use if a Trace needs to be performed to find BoneName on skeletalmesh. Trace from HitLocation.
- out_HitLocation - HitLocation to use for potential Trace, will get updated by Trace.
CheckMaxEffectDistance[edit]
ClearLatentAction[edit]
Clears all latent actions of the specified class.
Parameters:
- actionClass - type of latent action to clear
- bAborted - was this latent action aborted?
- exceptionAction - action to skip
DebugFreezeGame[edit]
Debug Freeze Game dumps the current script function stack and pauses the game with PlayersOnly (still allowing the player to move around).
DisplayDebug[edit]
list important Actor variables on canvas. HUD will call DisplayDebug() on the current ViewTarget when the ShowDebug exec is used
Parameters:
- HUD - HUD with canvas to draw on
- out_YL - Height of the current font
- out_YPos - Y position on Canvas. out_YPos += out_YL, gives position to draw text for next debug line.
DoKismetAttachment[edit]
Performs actual attachment. Can be subclassed for class specific behaviors.
EffectIsRelevant[edit]
FindActorsOfClass[edit]
Searches for actors of the specified class.
FindEventsOfClass[edit]
Builds a list of all events of the specified class.
Parameters:
- eventClass - type of event to search for
- out_EventList - list of found events
Returns:
- true if any events were found
FindGoodEndView[edit]
Used by PlayerController.FindGoodView() in RoundEnded State
ForceNetRelevant[edit]
forces this actor to be net relevant if it is not already by default, only works on level placed actors (bNoDelete)
GetDebugName[edit]
GetHumanReadableName[edit]
GetItemName[edit]
GetLocationStringFor[edit]
GetPhysicsName[edit]
HealDamage[edit]
the reverse of TakeDamage(); heals the specified amount
Parameters:
- Amount - The amount of damage to heal
- Healer - Who is doing the healing
- DamageType - What type of healing is it
HurtRadius[edit]
IsActorPlayingFaceFXAnim[edit]
Returns TRUE if Actor is playing a FaceFX anim. Implement in sub-class.
IsInPain[edit]
IsInVolume[edit]
IsStationary[edit]
KilledBy[edit]
MatchStarting[edit]
NotifyLocalPlayerTeamReceived[edit]
OnAttachToActor[edit]
Attach an actor to another one. Kismet action.
OnCauseDamage[edit]
Called upon receiving a SeqAct_CauseDamage action, calls TakeDamage() with the given parameters.
Parameters:
- Action - damage action that was activated
OnChangeCollision[edit]
Handler for collision action, allow designer to toggle collide/block actors
OnDestroy[edit]
If this actor is not already scheduled for destruction, destroy it now.
OnHealDamage[edit]
Called upon receiving a SeqAct_HealDamage action, calls HealDamage() with the given parameters.
Parameters:
- Action - heal action that was activated
OnMakeNoise[edit]
Force this actor to make a noise that the AI may hear
OnSetBlockRigidBody[edit]
Handler for the SeqAct_SetBlockRigidBody action. Allows level designer to toggle the rigid-body blocking flag on an Actor, and will handle updating the physics engine etc.
OnSetPhysics[edit]
Handler for the SeqAct_SetPhysics action, allowing designer to change the Physics mode of an Actor.
OnTeleport[edit]
Called upon receiving a SeqAct_Teleport action. Grabs the first destination available and attempts to teleport this actor.
Parameters:
- Action - teleport action that was activated
OnToggleHidden[edit]
Handler for SeqAct_ToggleHidden, just sets bHidden.
PawnBaseDied[edit]
PickedUpBy[edit]
implemented by pickup type Actors to do things following a successful pickup
Parameters:
- P - the Pawn that picked us up
Todo: remove this and fix up the DenyPickupQuery() calls that use this
PlayTeleportEffect[edit]
PostTeleport[edit]
PreTeleport[edit]
SetGRI[edit]
StopsProjectile[edit]
TakeRadiusDamage[edit]
Take Radius Damage by default scales damage based on distance from HurtOrigin to Actor's location. This can be overridden by the actor receiving the damage for special conditions (see KAsset.uc). This then calls TakeDamage() to go through the same damage pipeline.
Parameters:
- InstigatedBy - instigator of the damage
- Base - Damage
- Damage - Radius (from Origin)
- DamageType - class
- Momentum - float)
- HurtOrigin - origin of the damage radius.
- bFullDamage - if true, damage not scaled based on distance HurtOrigin
- DamageCauser - the Actor that directly caused the damage (i.e. the Projectile that exploded, the Weapon that fired, etc)
TimeSince[edit]
Retrieves difference between world time and given time
TriggerEventClass[edit]
Convenience function for triggering events in the GeneratedEvents list If you need more options (activating multiple outputs, etc), call ActivateEventClass() directly
UsedBy[edit]
Called when being activated by the specified pawn. Default implementation searches for any SeqEvent_Used and activates them.
Returns:
- true to indicate this actor was activated