Skip to main content
Version: latest - a1.172.0 โš–๏ธ

Base Actor

An Actor is an object which can be spawned and destroyed through Lua.
Actors support 3D transformations such as translation (location), rotation, and scale.

An Actor is the base for several entities, and all those entities share the same Methods and Events described in this page

๐Ÿ‘ชBase Class
This is a Base Class, an abstract definition that shares common methods and events with it's child classes. You cannot spawn it, and you cannot call anything on the Base Class name itself. Use any class that inherits it.

Classes that share methods and events from this Base Class: Billboard, Blueprint, Cable, Character, CharacterSimple, Decal, Gizmo, Grenade, InstancedStaticMesh, Light, Melee, Particle, Prop, SceneCapture, StaticMesh, Sound, TextRender, Text3D, Trigger, VehicleWheeled, VehicleWater, Weapon, Widget3D.

๐Ÿฆ  Functionsโ€‹

caution

Some of the following methods may not work on certain Actor classes.

Appearance
GetDistanceFromCamera: floatGets the distance of this Actor from the Camera
GetScreenPercentage: floatGets the percentage of this Actor size in the screen
IsVisible: booleanReturns true if this Actor is visible
SetCastShadowSets this Actor's to cast shadows or not
SetHighlightEnabledSets whether the highlight is enabled on this Actor, and which highlight index to use
SetOutlineEnabledSets whether the outline is enabled on this Actor, and which outline index to use
SetRenderCullDistanceSets this Actor's render cull distance
SetVisibilitySets whether the actor is visible or not
WasRecentlyRendered: booleanGets if this Actor was recently rendered on screen
Attachments
AttachTo: booleanAttaches this Actor to any other Actor, optionally at a specific bone
DetachDetaches this Actor from AttachedTo Actor
GetAttachedEntities: table of Base ActorGets all Actors attached to this Actor
GetAttachedTo: Base Actor or nilGets the Actor this Actor is attached to
GetAttachedToSocket: stringGets the bone or socket name this Actor is attached to
GetSocketTransform: tableGets a Socket Transform in world space given a bone or socket name
Lifecycle
GetLifeSpan: floatGets the time (in seconds) left before this Actor is destroyed
SetLifeSpanSets the time (in seconds) before this Actor is destroyed. After this time has passed, the actor will be automatically destroyed
Network
GetDimension: integerGets this Actor's dimension
GetNetworkAuthority: Player or nilGets this Actor's Network Authority Player
HasNetworkAuthority: booleanReturns true if the local Player is currently the Network Authority of this Actor
IsNetworkDistributed: booleanReturns true if this Actor is currently network distributed
SetDimensionSets this Actor's Dimension. Actors only see and interact with entities in the same Dimension
SetDistanceOptimizationMultiplierSets this Actor's distance optimization multiplier
SetNetworkAuthoritySets the Player to have network authority over this Actor
SetNetworkAuthorityAutoDistributedSets if this Actor will auto distribute the network authority between players
Physics
AddAngularImpulseAdd an angular impulse to this Actor. Good for one time instant burst
AddImpulseAdd an impulse to this Actor. Good for one time instant burst
GetAngularForce: VectorGets this Actor's angular force (set by SetAngularForce())
GetAngularVelocity: floatReturns the angular velocity of this Actor
GetCollision: CollisionTypeGets this Actor's collision type
GetForce: VectorGets this Actor's force (set by SetForce())
GetMass: floatReturns the mass of this Actor
GetVelocity: VectorGets this Actor's current velocity
IsGravityEnabled: booleanReturns true if gravity is enabled on this Actor
IsImpulseOnDamage: booleanReturns true if taking damage pushes this Actor's physics body
IsInWater: booleanReturns true if this Actor is in water
ResetVelocityResets this Actor's linear and angular velocities to zero
SetAngularForceAdds a permanent angular force to this Actor, set to Vector(0, 0, 0) to cancel
SetCollisionSets this Actor's collision type
SetForceAdds a permanent force to this Actor, set to Vector(0, 0, 0) to cancel
SetGravityEnabledSets whether gravity is enabled on this Actor
SetImpulseOnDamageSets whether taking damage (shots, melee, explosions) pushes this Actor's physics body
Tags
AddActorTagAdds an Unreal Actor Tag to this Actor
GetActorTags: table of stringGets all Unreal Actor Tags on this Actor
RemoveActorTagRemoves an Unreal Actor Tag from this Actor
Transform
GetBounds: tableGets this Actor's bounds, useful to know its size in the world
GetLocation: VectorGets this Actor's location in the game world
GetRelativeLocation: VectorGets this Actor's Relative Location if it's attached
GetRelativeRotation: RotatorGets this Actor's Relative Rotation if it's attached
GetRotation: RotatorGets this Actor's angle in the game world
GetScale: VectorGets this Actor's scale
RotateRelativeToSmoothly rotates this attached actor to an angle relative to its parent over a certain time
RotateToSmoothly rotates this actor to an angle over a certain time
SetLocationSets this Actor's location in the game world
SetRelativeLocationSets this Actor's relative location in local space (only if this actor is attached)
SetRelativeRotationSets this Actor's relative rotation in local space (only if this actor is attached)
SetRotationSets this Actor's rotation in the game world
SetScaleSets this Actor's scale
TranslateRelativeToSmoothly moves this attached actor to a location relative to its parent over a certain time
TranslateToSmoothly moves this actor to a location over a certain time

Appearancefunctionsโ€‹

GetDistanceFromCameraโ€‹

Optimal

Gets the distance of this Actor from the Camera

local ret = my_actor:GetDistanceFromCamera()
Returns
TypeDescription
floatDistance of this Actor from the Camera

GetScreenPercentageโ€‹

Optimal

Gets the percentage of this Actor size in the screen

local ret = my_actor:GetScreenPercentage()
Returns
TypeDescription
floatPercentage of this Actor size in the screen

IsVisibleโ€‹

Optimal

Returns true if this Actor is visible

local is_visible = my_actor:IsVisible()
Returns
TypeDescription
booleanWhether this Actor is visible

SetCastShadowโ€‹

Moderate

Sets this Actor's to cast shadows or not

my_actor:SetCastShadow(cast_shadow)
Parameters
NameTypeDescription
cast_shadowbooleanThe new to cast shadows or not

SetHighlightEnabledโ€‹

Optimal

Sets whether the highlight is enabled on this Actor, and which highlight index to use

This will apply the highlight on every attached entity too

my_actor:SetHighlightEnabled(is_enabled, index?)
Parameters
NameTypeDescription
is_enabledbooleanWhether the highlight is enabled
index?integerIndex to use (should be 0, 1 or 2) Default 0

See also Client.SetHighlightColor().

SetOutlineEnabledโ€‹

Optimal

Sets whether the outline is enabled on this Actor, and which outline index to use

This will apply the outline on every attached entity too

my_actor:SetOutlineEnabled(is_enabled, index?)
Parameters
NameTypeDescription
is_enabledbooleanWhether the outline is enabled
index?integerIndex to use (should be 0, 1 or 2) Default 0

See also Client.SetOutlineColor().

SetRenderCullDistanceโ€‹

Moderate

Sets this Actor's render cull distance

Note: this will only affect the rendering distance, the entity will still be spawned and synced normally regardless of this distance

my_actor:SetRenderCullDistance(max_distance)
Parameters
NameTypeDescription
max_distanceintegerThe new render cull distance

SetVisibilityโ€‹

Optimal

Sets whether the actor is visible or not

my_actor:SetVisibility(is_visible)
Parameters
NameTypeDescription
is_visiblebooleanWhether the actor is visible or not

WasRecentlyRenderedโ€‹

Moderate

Gets if this Actor was recently rendered on screen

local ret = my_actor:WasRecentlyRendered()
Returns
TypeDescription
booleanWhether this Actor was recently rendered on screen

Attachmentsfunctionsโ€‹

AttachToโ€‹

Moderate

Attaches this Actor to any other Actor, optionally at a specific bone

local attached_successfully = my_actor:AttachTo(other, attachment_rule?, bone_name?, lifespan_when_detached?, use_absolute_rotation?)
Parameters
NameTypeDescription
otherBase ActorOther actor to attach
attachment_rule?AttachmentRuleHow to attach Default AttachmentRule.SnapToTarget
bone_name?stringWhich bone to attach to. If empty it will be attached to the Actor, otherwise to the Mesh at the bone/socket Default
lifespan_when_detached?floatSeconds before destroying this Actor when detached, setting it to 0 will automatically destroy this actor when detached, setting it to 10 will destroy this after 10 seconds when detached Default -1
use_absolute_rotation?booleanWhether to force attached object to use absolute rotation (will not follow parent) Default false
Returns
TypeDescription
booleanif it was attached successfully

Detachโ€‹

Optimal

Detaches this Actor from AttachedTo Actor

my_actor:Detach()

GetAttachedEntitiesโ€‹

Moderate

Gets all Actors attached to this Actor

local ret = my_actor:GetAttachedEntities(recursively?)
Parameters
NameTypeDescription
recursively?booleanAlso returns the Actors attached to the attached Actors Default false
Returns
TypeDescription
table of Base ActorAll Actors attached to this Actor

GetAttachedToโ€‹

Optimal

Gets the Actor this Actor is attached to

local ret = my_actor:GetAttachedTo()
Returns
TypeDescription
Base Actor or nilActor this Actor is attached to

GetAttachedToSocketโ€‹

Optimal

Gets the bone or socket name this Actor is attached to

local ret = my_actor:GetAttachedToSocket()
Returns
TypeDescription
stringThe bone or socket name, or an empty string if not attached to a bone

GetSocketTransformโ€‹

Moderate

Gets a Socket Transform in world space given a bone or socket name

local ret = my_actor:GetSocketTransform(socket_name, attachable_id?)
Parameters
NameTypeDescription
socket_namestringName of the socket
attachable_id?stringThe attachable ID (set with AddSkeletalMeshAttached or AddStaticMeshAttached) to read the Socket from. Pass empty to read from the main mesh Default
Returns
TypeDescription
tableSocket Transform in world space given a bone or socket name
Table keys
NameTypeDescription
LocationVectorNo description provided
RotationRotatorNo description provided
ScaleVectorNo description provided

Lifecyclefunctionsโ€‹

GetLifeSpanโ€‹

Optimal

Gets the time (in seconds) left before this Actor is destroyed

local ret = my_actor:GetLifeSpan()
Returns
TypeDescription
floatSeconds before being destroyed

See also SetLifeSpan.

SetLifeSpanโ€‹

Optimal

Sets the time (in seconds) before this Actor is destroyed. After this time has passed, the actor will be automatically destroyed

my_actor:SetLifeSpan(seconds)
Parameters
NameTypeDescription
secondsfloatSeconds before being destroyed

See also GetLifeSpan.

Networkfunctionsโ€‹

GetDimensionโ€‹

Optimal

Gets this Actor's dimension

local dimension = my_actor:GetDimension()
Returns
TypeDescription
integerThis Actor's dimension

See also SetDimension, DimensionChange.

GetNetworkAuthorityโ€‹

Optimal

Gets this Actor's Network Authority Player

local ret = my_actor:GetNetworkAuthority()
Returns
TypeDescription
Player or nilThis Actor's Network Authority Player

See also SetNetworkAuthority.

HasNetworkAuthorityโ€‹

Optimal

Returns true if the local Player is currently the Network Authority of this Actor

local has_network_authority = my_actor:HasNetworkAuthority()
Returns
TypeDescription
booleanWhether the local Player is currently the Network Authority of this Actor

IsNetworkDistributedโ€‹

Optimal

Returns true if this Actor is currently network distributed

Only actors being network distributed can have their network authority set
Entities have NetworkDistributed automatically disabled when: Attached, Possessed, Grabbed, Picked Up or Driving

local ret = my_actor:IsNetworkDistributed()
Returns
TypeDescription
booleanWhether this Actor is currently network distributed

See also SetNetworkAuthorityAutoDistributed, SetNetworkAuthority.

SetDimensionโ€‹

Moderate

Sets this Actor's Dimension. Actors only see and interact with entities in the same Dimension

my_actor:SetDimension(dimension)
Parameters
NameTypeDescription
dimensionintegerThe new Dimension

See also GetDimension, DimensionChange.

SetDistanceOptimizationMultiplierโ€‹

Optimal

Sets this Actor's distance optimization multiplier

A value of 0 disables optimization. Values under 1 decrease the effect, while values over 1 increase it

my_actor:SetDistanceOptimizationMultiplier(multiplier)
Parameters
NameTypeDescription
multiplierfloatThe new distance optimization multiplier

SetNetworkAuthorityโ€‹

Moderate

Sets the Player to have network authority over this Actor

This Player will be manually assigned to handle this Actor's physics and share its location with other clients. The authority assignment will still be overridden by the game automatically

Please refer to Network Authority for more information

my_actor:SetNetworkAuthority(player?)
Parameters
NameTypeDescription
player?PlayerNew player which will assume the Network Authority of this Actor Default nil

See also SetNetworkAuthorityAutoDistributed, IsNetworkDistributed, GetNetworkAuthority, NetworkAuthorityChange.

SetNetworkAuthorityAutoDistributedโ€‹

Optimal

Sets if this Actor will auto distribute the network authority between players

It only happens while the Actor is idle.

Please refer to Network Authority for more information

my_actor:SetNetworkAuthorityAutoDistributed(auto_distribute)
Parameters
NameTypeDescription
auto_distributebooleanIf this Actor will be auto network distributed

See also SetNetworkAuthority, IsNetworkDistributed.

Physicsfunctionsโ€‹

AddAngularImpulseโ€‹

Optimal

Add an angular impulse to this Actor. Good for one time instant burst

my_actor:AddAngularImpulse(angular_impulse, velocity_change?)
Parameters
NameTypeDescription
angular_impulseVectorMagnitude and direction of impulse to apply. Direction is axis of rotation. In Radians
velocity_change?booleanWhether to ignore mass Default false

AddImpulseโ€‹

Optimal

Add an impulse to this Actor. Good for one time instant burst

my_actor:AddImpulse(impulse, velocity_change?)
Parameters
NameTypeDescription
impulseVectorMagnitude and direction of impulse to apply
velocity_change?booleanWhether to ignore mass Default false

GetAngularForceโ€‹

Optimal

Gets this Actor's angular force (set by SetAngularForce())

local angular_force = my_actor:GetAngularForce()
Returns
TypeDescription
VectorThis Actor's angular force

See also SetAngularForce.

GetAngularVelocityโ€‹

Optimal

Returns the angular velocity of this Actor

local angular_velocity = my_actor:GetAngularVelocity()
Returns
TypeDescription
floatAngular velocity of this Actor

GetCollisionโ€‹

Optimal

Gets this Actor's collision type

local collision_type = my_actor:GetCollision()
Returns
TypeDescription
CollisionTypeThis Actor's collision type

See also SetCollision.

GetForceโ€‹

Optimal

Gets this Actor's force (set by SetForce())

local force = my_actor:GetForce()
Returns
TypeDescription
VectorThis Actor's force

See also SetForce.

GetMassโ€‹

Optimal

Returns the mass of this Actor

local mass = my_actor:GetMass()
Returns
TypeDescription
floatMass of this Actor

GetVelocityโ€‹

Optimal

Gets this Actor's current velocity

local velocity = my_actor:GetVelocity()
Returns
TypeDescription
VectorThis Actor's current velocity

IsGravityEnabledโ€‹

Optimal

Returns true if gravity is enabled on this Actor

local gravity_enabled = my_actor:IsGravityEnabled()
Returns
TypeDescription
booleanWhether gravity is enabled on this Actor

See also SetGravityEnabled.

IsImpulseOnDamageโ€‹

Optimal

Returns true if taking damage pushes this Actor's physics body

local impulse_on_damage = my_actor:IsImpulseOnDamage()
Returns
TypeDescription
booleanWhether taking damage pushes this Actor

See also SetImpulseOnDamage.

IsInWaterโ€‹

Optimal

Returns true if this Actor is in water

Only Actors that simulate physics work for this function, such as Prop, Vehicle, Pickables and Character only

local in_water = my_actor:IsInWater()
Returns
TypeDescription
booleanWhether this Actor is in water

ResetVelocityโ€‹

Optimal

Resets this Actor's linear and angular velocities to zero

For Pawns, also resets the character movement velocity

my_actor:ResetVelocity()

SetAngularForceโ€‹

Optimal

Adds a permanent angular force to this Actor, set to Vector(0, 0, 0) to cancel

my_actor:SetAngularForce(angular_force)
Parameters
NameTypeDescription
angular_forceVectorThe angular force to apply every frame

See also GetAngularForce.

SetCollisionโ€‹

Optimal

Sets this Actor's collision type

my_actor:SetCollision(collision_type)
Parameters
NameTypeDescription
collision_typeCollisionTypeThe new collision type

See also GetCollision.

SetForceโ€‹

Optimal

Adds a permanent force to this Actor, set to Vector(0, 0, 0) to cancel

my_actor:SetForce(force, is_local?)
Parameters
NameTypeDescription
forceVectorThe force to apply every frame
is_local?booleanWhether to apply the force in local space Default true

See also GetForce.

SetGravityEnabledโ€‹

Optimal

Sets whether gravity is enabled on this Actor

my_actor:SetGravityEnabled(gravity_enabled)
Parameters
NameTypeDescription
gravity_enabledbooleanWhether gravity is enabled on this Actor

See also IsGravityEnabled.

SetImpulseOnDamageโ€‹

Optimal

Sets whether taking damage (shots, melee, explosions) pushes this Actor's physics body

Useful for things that should react to shots without being knocked around, like a shooting target that still falls with gravity and can be moved by other means. Enabled by default

my_actor:SetImpulseOnDamage(impulse_on_damage)
Parameters
NameTypeDescription
impulse_on_damagebooleanWhether taking damage pushes this Actor

See also IsImpulseOnDamage.

Tagsfunctionsโ€‹

AddActorTagโ€‹

Optimal

Adds an Unreal Actor Tag to this Actor

my_actor:AddActorTag(tag)
Parameters
NameTypeDescription
tagstringThe tag to add

See also RemoveActorTag, GetActorTags.

GetActorTagsโ€‹

Moderate

Gets all Unreal Actor Tags on this Actor

local ret = my_actor:GetActorTags()
Returns
TypeDescription
table of stringAll Unreal Actor Tags on this Actor

See also AddActorTag, RemoveActorTag.

RemoveActorTagโ€‹

Optimal

Removes an Unreal Actor Tag from this Actor

my_actor:RemoveActorTag(tag)
Parameters
NameTypeDescription
tagstringThe tag to remove

See also AddActorTag, GetActorTags.

Transformfunctionsโ€‹

GetBoundsโ€‹

Moderate

Gets this Actor's bounds, useful to know its size in the world

local ret = my_actor:GetBounds()
Returns
TypeDescription
tableThis Actor's bounds
Table keys
NameTypeDescription
OriginVectorNo description provided
BoxExtentVectorNo description provided
SphereRadiusfloatNo description provided

GetLocationโ€‹

Optimal

Gets this Actor's location in the game world

local location = my_actor:GetLocation()
Returns
TypeDescription
VectorThis Actor's location in the game world

See also SetLocation.

GetRelativeLocationโ€‹

Optimal

Gets this Actor's Relative Location if it's attached

local relative_location = my_actor:GetRelativeLocation()
Returns
TypeDescription
VectorThis Actor's Relative Location if it's attached

See also SetRelativeLocation.

GetRelativeRotationโ€‹

Optimal

Gets this Actor's Relative Rotation if it's attached

local relative_rotation = my_actor:GetRelativeRotation()
Returns
TypeDescription
RotatorThis Actor's Relative Rotation if it's attached

See also SetRelativeRotation.

GetRotationโ€‹

Optimal

Gets this Actor's angle in the game world

local rotation = my_actor:GetRotation()
Returns
TypeDescription
RotatorThis Actor's angle in the game world

See also SetRotation.

GetScaleโ€‹

Optimal

Gets this Actor's scale

local scale = my_actor:GetScale()
Returns
TypeDescription
VectorThis Actor's scale

See also SetScale.

RotateRelativeToโ€‹

Optimal

Smoothly rotates this attached actor to an angle relative to its parent over a certain time

Like SetRelativeRotation, it keeps following the parent while it rotates. It can only be used while the actor is attached, and it is cancelled if the actor gets attached to something else or detached

my_actor:RotateRelativeTo(relative_rotation, time, exp?)
Parameters
NameTypeDescription
relative_rotationRotatorThe target rotation, relative to the parent
timefloatTime to interpolate from current location to target location
exp?floatExponent used to smooth interpolation. Use 0 for linear movement Default 0

RotateToโ€‹

Optimal

Smoothly rotates this actor to an angle over a certain time

It can't be used while the actor is attached, grabbed, picked or in a vehicle. Use RotateRelativeTo for attached actors

my_actor:RotateTo(rotation, time, exp?)
Parameters
NameTypeDescription
rotationRotatorThe target rotation
timefloatTime to interpolate from current location to target location
exp?floatExponent used to smooth interpolation. Use 0 for linear movement Default 0

SetLocationโ€‹

Moderate

Sets this Actor's location in the game world

my_actor:SetLocation(location)
Parameters
NameTypeDescription
locationVectorThe new location in the game world

See also GetLocation.

SetRelativeLocationโ€‹

Moderate

Sets this Actor's relative location in local space (only if this actor is attached)

my_actor:SetRelativeLocation(relative_location)
Parameters
NameTypeDescription
relative_locationVectorThe new relative location in local space

See also GetRelativeLocation.

SetRelativeRotationโ€‹

Moderate

Sets this Actor's relative rotation in local space (only if this actor is attached)

my_actor:SetRelativeRotation(relative_rotation)
Parameters
NameTypeDescription
relative_rotationRotatorThe new relative rotation in local space

See also GetRelativeRotation.

SetRotationโ€‹

Moderate

Sets this Actor's rotation in the game world

my_actor:SetRotation(rotation)
Parameters
NameTypeDescription
rotationRotatorThe new rotation in the game world

See also GetRotation.

SetScaleโ€‹

Slow

Sets this Actor's scale

my_actor:SetScale(scale)
Parameters
NameTypeDescription
scaleVectorThe new scale

See also GetScale.

TranslateRelativeToโ€‹

Optimal

Smoothly moves this attached actor to a location relative to its parent over a certain time

Like SetRelativeLocation, it keeps following the parent while it moves. It can only be used while the actor is attached, and it is cancelled if the actor gets attached to something else or detached

my_actor:TranslateRelativeTo(relative_location, time, exp?)
Parameters
NameTypeDescription
relative_locationVectorThe target location, relative to the parent
timefloatTime to interpolate from current location to target location
exp?floatExponent used to smooth interpolation. Use 0 for linear movement Default 0

TranslateToโ€‹

Optimal

Smoothly moves this actor to a location over a certain time

It can't be used while the actor is attached, grabbed, picked or in a vehicle. Use TranslateRelativeTo for attached actors

my_actor:TranslateTo(location, time, exp?)
Parameters
NameTypeDescription
locationVectorThe target location
timefloatTime to interpolate from current location to target location
exp?floatExponent used to smooth interpolation. Use 0 for linear movement Default 0

๐Ÿš€ Eventsโ€‹

DimensionChangeTriggered when an Actor changes its dimension
EnterWaterTriggered when an Actor enters a water body
LeaveWaterTriggered when an Actor leaves a water body
NetworkAuthorityChangeTriggered when an Actor changes its network authority Player
NetworkAuthorityChangeTriggered when the local Player gets/loses network authority over this actor

DimensionChangeโ€‹

Triggered when an Actor changes its dimension

<AnyActorClass>.Subscribe("DimensionChange", function(self, old_dimension, new_dimension)
-- DimensionChange was called
end)
Arguments
NameTypeDescription
selfBase ActorThe Actor that triggered the event
old_dimensionintegerThe previous dimension
new_dimensionintegerThe new dimension

See also SetDimension, GetDimension.

EnterWaterโ€‹

Triggered when an Actor enters a water body

Only Actors that simulate physics trigger this event, such as Prop, Vehicle, Pickables and Character only

<AnyActorClass>.Subscribe("EnterWater", function(self)
-- EnterWater was called
end)
Arguments
NameTypeDescription
selfBase ActorThe Actor that triggered the event

See also IsInWater.

LeaveWaterโ€‹

Triggered when an Actor leaves a water body

Only Actors that simulate physics trigger this event, such as Prop, Vehicle, Pickables and Character only

<AnyActorClass>.Subscribe("LeaveWater", function(self)
-- LeaveWater was called
end)
Arguments
NameTypeDescription
selfBase ActorThe Actor that triggered the event

See also IsInWater.

NetworkAuthorityChangeโ€‹

Triggered when an Actor changes its network authority Player

<AnyActorClass>.Subscribe("NetworkAuthorityChange", function(self, old_network_authority, new_network_authority)
-- NetworkAuthorityChange was called
end)
Arguments
NameTypeDescription
selfBase ActorThe Actor that triggered the event
old_network_authorityPlayer or nilThe old Network Authority Player, if any
new_network_authorityPlayer or nilThe new Network Authority Player, if any

See also SetNetworkAuthority, GetNetworkAuthority.

NetworkAuthorityChangeโ€‹

Triggered when the local Player gets/loses network authority over this actor

<AnyActorClass>.Subscribe("NetworkAuthorityChange", function(self, is_network_authority)
-- NetworkAuthorityChange was called
end)
Arguments
NameTypeDescription
selfBase ActorThe Actor that triggered the event
is_network_authoritybooleanWhether the local Player is now the Network Authority of this Actor

See also SetNetworkAuthority, GetNetworkAuthority.