actors.set

Writes a reflected actor or component property.

Syntax

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

Parameters

ParameterTypeDescription
actorActorReferenceString query or actor descriptor.
propertystringReflected property name.
valueanyValue convertible to the Unreal property type.
componentstring?Optional component name.

Returns

TypeDescription
trueProperty was written.
nil, stringLookup or conversion failed.

Example

local ok, err = ue.actors.set("Player", "Health", 100)
assert(ok, err)

On this page