actors.get

Reads a reflected actor or component property.

Syntax

ue.actors.get(actor: ActorReference, property: string, component?: string) -> any?, string?

Parameters

ParameterTypeDescription
actorActorReferenceString query or actor descriptor.
propertystringReflected property name.
componentstring?Optional component name.

Returns

TypeDescription
anyReflected property value.
nil, stringLookup or reflection failed.

Example

local health, err = ue.actors.get("Player", "Health")
if not health then print(err) end

On this page