actors.set
Writes a reflected actor or component property.
Syntax
ue.actors.set(actor: ActorReference, property: string, value: any, component?: string) -> boolean?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
actor | ActorReference | String query or actor descriptor. |
property | string | Reflected property name. |
value | any | Value convertible to the Unreal property type. |
component | string? | Optional component name. |
Returns
| Type | Description |
|---|---|
true | Property was written. |
nil, string | Lookup or conversion failed. |
Example
local ok, err = ue.actors.set("Player", "Health", 100)
assert(ok, err)