PlatinumSDK Lua API

Open searchable reader

engine.ui_open

engine.ui_open(path, modal)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
modalOption<bool>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:5

engine.ui_close

engine.ui_close()

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:6

engine.ui_set_value

engine.ui_set_value(name, value)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
nameStringFalse
valueValueFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:7

engine.spawn_asset

engine.spawn_asset(path, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Spawn

Source: crates/platinum-sdk/src/game/lua_catalog.rs:8

engine.load_level

engine.load_level(level, preserve)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
levelStringFalse
preserveOption<bool>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::LoadLevel

Source: crates/platinum-sdk/src/game/lua_catalog.rs:9

engine.set_game_phase

engine.set_game_phase(phase)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
phaseStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Phase

Source: crates/platinum-sdk/src/game/lua_catalog.rs:10

engine.move_player

engine.move_player(id, x, z, sprint)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
xf32False
zf32False
sprintboolFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Move

Source: crates/platinum-sdk/src/game/lua_catalog.rs:11

engine.jump

engine.jump(id)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Jump

Source: crates/platinum-sdk/src/game/lua_catalog.rs:12

engine.try_pickup

engine.try_pickup(id, radius)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
radiusf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Pickup

Source: crates/platinum-sdk/src/game/lua_catalog.rs:13

engine.fire

engine.fire(id)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Fire

Source: crates/platinum-sdk/src/game/lua_catalog.rs:14

engine.add_score

engine.add_score(points)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pointsi32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Score

Source: crates/platinum-sdk/src/game/lua_catalog.rs:15

engine.destroy

engine.destroy(id)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Destroy

Source: crates/platinum-sdk/src/game/lua_catalog.rs:16

engine.notify

engine.notify(message)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
messageStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Notify

Source: crates/platinum-sdk/src/game/lua_catalog.rs:17

engine.rotate_beacon

engine.rotate_beacon(id, angle)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
anglef32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Spin

Source: crates/platinum-sdk/src/game/lua_catalog.rs:18

engine.apply_impulse

engine.apply_impulse(id, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Physics

Source: crates/platinum-sdk/src/game/lua_catalog.rs:19

engine.set_velocity

engine.set_velocity(id, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Physics

Source: crates/platinum-sdk/src/game/lua_catalog.rs:20

engine.set_angular_velocity

engine.set_angular_velocity(id, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Physics

Source: crates/platinum-sdk/src/game/lua_catalog.rs:21

engine.teleport_body

engine.teleport_body(id, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Physics

Source: crates/platinum-sdk/src/game/lua_catalog.rs:22

engine.emit_particles

engine.emit_particles(path, x, y, z, scale)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
xf32False
yf32False
zf32False
scaleOption<f32>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Particles

Source: crates/platinum-sdk/src/game/lua_catalog.rs:23

engine.explode

engine.explode(id, radius, damage, impulse)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
radiusf32False
damagef32False
impulsef32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Explosion

Source: crates/platinum-sdk/src/game/lua_catalog.rs:24

engine.switch_weapon

engine.switch_weapon(slot)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
slotusizeFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Switch

Source: crates/platinum-sdk/src/game/lua_catalog.rs:25

engine.give_equipment

engine.give_equipment(player, item)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
itemExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:26

engine.equip_slot

engine.equip_slot(player, slot)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
slotusizeFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:27

engine.drop_equipment

engine.drop_equipment(player, item)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
itemExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:28

engine.use_equipment

engine.use_equipment(player)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:29

engine.reload_equipment

engine.reload_equipment(player)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:30

engine.set_equipment_animation_playback

engine.set_equipment_animation_playback(player, options)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
optionsOption<Table>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Equipment

Source: crates/platinum-sdk/src/game/lua_catalog.rs:31

engine.set_match_mode

engine.set_match_mode(name)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
nameStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::GameMode

Source: crates/platinum-sdk/src/game/lua_catalog.rs:38

engine.set_scene_residency

engine.set_scene_residency(reference, value)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
referenceStringFalse
valueStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:39

engine.set_scene_event_scope

engine.set_scene_event_scope(reference, kind, include, exclude)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
referenceStringFalse
kindStringFalse
includeOption<String>True
excludeOption<String>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:40

engine.assign_object_scene

engine.assign_object_scene(id, reference)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
referenceStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:41

engine.spawn_in_scene

engine.spawn_in_scene(source, reference, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
sourceStringFalse
referenceStringFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:42

engine.mount_scene

engine.mount_scene(source, reference, residency, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
sourceStringFalse
referenceStringFalse
residencyStringFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:43

engine.set_scene_asset_defaults

engine.set_scene_asset_defaults(source, residency, scope)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
sourceStringFalse
residencyStringFalse
scopeStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:44

engine.set_scene_child_defaults

engine.set_scene_child_defaults(reference, residency, scope)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
referenceStringFalse
residencyOption<String>True
scopeOption<String>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:45

engine.scene_command

engine.scene_command(text)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
textStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Scene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:46

engine.stream_scene_in

engine.stream_scene_in(path, x, y, z)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
xf32False
yf32False
zf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::StreamIn

Source: crates/platinum-sdk/src/game/lua_catalog.rs:47

engine.stream_scene_out

engine.stream_scene_out(root)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
rootExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::StreamOut

Source: crates/platinum-sdk/src/game/lua_catalog.rs:48

engine.heal_player

engine.heal_player(player, amount)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
amountf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::HealPlayer

Source: crates/platinum-sdk/src/game/lua_catalog.rs:49

engine.damage_player

engine.damage_player(player, amount)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
playerExactLuaEntityFalse
amountf32False
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::DamagePlayer

Source: crates/platinum-sdk/src/game/lua_catalog.rs:50

engine.anim_set_parameter

engine.anim_set_parameter(id, name, value)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
nameStringFalse
valueValueFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:51

engine.anim_trigger

engine.anim_trigger(id, name)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
nameStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:52

engine.ik_set_target

engine.ik_set_target(id, root, middle, end, x, y, z, px, py, pz, weight)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
rootStringFalse
middleStringFalse
endStringFalse
xf32False
yf32False
zf32False
pxf32False
pyf32False
pzf32False
weightOption<f32>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:53

engine.look_at

engine.look_at(id, bone, x, y, z, weight)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
boneStringFalse
xf32False
yf32False
zf32False
weightOption<f32>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:54

engine.spine_aim

engine.spine_aim(id, bones, pitch, yaw, weight)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
bonesTableFalse
pitchf32False
yawf32False
weightOption<f32>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:55

engine.ik_clear

engine.ik_clear(id)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Character

Source: crates/platinum-sdk/src/game/lua_catalog.rs:56

engine.play_sound

engine.play_sound(path, x, y, z, gain)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
xf32False
yf32False
zf32False
gainOption<f32>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Sound

Source: crates/platinum-sdk/src/game/lua_catalog.rs:57

engine.emit

engine.emit(name, source, values)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
nameStringFalse
sourceExactLuaEntityFalse
valuesOption<Table>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Emit

Source: crates/platinum-sdk/src/game/lua_catalog.rs:58

engine.play_animation

engine.play_animation(path, bindings, values, options)

Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
bindingsTableFalse
valuesOption<Table>True
optionsOption<Table>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::AnimateWithOptions

Source: crates/platinum-sdk/src/game/lua_catalog.rs:59

engine.scene_entities

engine.scene_entities(reference)

Return the exact entity identities in a scene reference.

Parameters (registration types)
NameTypeOptional
referenceStringFalse

Return descriptor:

vec![LuaType::Array(Box::new(LuaType::Named("EntityId".into())))]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::SceneEntities

Source: crates/platinum-sdk/src/game/lua_catalog.rs:105

engine.object_scene

engine.object_scene(id)

Return the object's scene reference, or nil if it is unavailable.

Parameters (registration types)
NameTypeOptional
idExactLuaEntityFalse

Return descriptor:

vec![LuaType::Optional(Box::new(LuaType::String))]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::ObjectScene

Source: crates/platinum-sdk/src/game/lua_catalog.rs:110

engine.scene_residency

engine.scene_residency(reference)

Return scene residency, or nil if the reference is unavailable.

Parameters (registration types)
NameTypeOptional
referenceStringFalse

Return descriptor:

vec![LuaType::Optional(Box::new(LuaType::String))]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::SceneResidency

Source: crates/platinum-sdk/src/game/lua_catalog.rs:115

engine.ui_get

engine.ui_get(document, id, property)

Read one validated scalar UI widget property in the executing player's UI state.

Parameters (registration types)
NameTypeOptional
documentStringFalse
idExactLuaEntityFalse
propertyStringFalse

Return descriptor:

vec![LuaType::Union(vec![
                    LuaType::String,
                    LuaType::Number,
                    LuaType::Boolean,
                ])]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::UiGet

Source: crates/platinum-sdk/src/game/lua_catalog.rs:120

engine.ui_patch

engine.ui_patch(document, id, properties)

Validate and apply scalar widget property changes; the engine queues the authoritative UI command.

Parameters (registration types)
NameTypeOptional
documentStringFalse
idExactLuaEntityFalse
propertiesTableFalse

Return descriptor:

vec![]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::UiPatch

Source: crates/platinum-sdk/src/game/lua_catalog.rs:129

engine.set_game_value

engine.set_game_value(name, value)

Set a bounded named boolean, finite number or string game value.

Parameters (registration types)
NameTypeOptional
nameStringFalse
valueValueFalse

Return descriptor:

vec![]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::SetGameValue

Source: crates/platinum-sdk/src/game/lua_catalog.rs:134

engine.get_game_value

engine.get_game_value(name)

Read a named game value; absent values return nil.

Parameters (registration types)
NameTypeOptional
nameStringFalse

Return descriptor:

vec![LuaType::Unknown]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::GetGameValue

Source: crates/platinum-sdk/src/game/lua_catalog.rs:135

engine.ui.open

engine.ui.open(path, modal)

Alias of engine.ui_open. Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
pathStringFalse
modalOption<bool>True
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:5

engine.ui.get

engine.ui.get(document, id, property)

Alias of engine.ui_get. Read one validated scalar UI widget property in the executing player's UI state.

Parameters (registration types)
NameTypeOptional
documentStringFalse
idExactLuaEntityFalse
propertyStringFalse

Return descriptor:

vec![LuaType::Union(vec![
                    LuaType::String,
                    LuaType::Number,
                    LuaType::Boolean,
                ])]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::UiGet

Source: crates/platinum-sdk/src/game/lua_catalog.rs:120

engine.ui.patch

engine.ui.patch(document, id, properties)

Alias of engine.ui_patch. Validate and apply scalar widget property changes; the engine queues the authoritative UI command.

Parameters (registration types)
NameTypeOptional
documentStringFalse
idExactLuaEntityFalse
propertiesTableFalse

Return descriptor:

vec![]
Source-evidenced cross-language references
LuaEvent TableNative
QueryBinding::UiPatch

Source: crates/platinum-sdk/src/game/lua_catalog.rs:129

engine.ui.set_value

engine.ui.set_value(name, value)

Alias of engine.ui_set_value. Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Parameters (registration types)
NameTypeOptional
nameStringFalse
valueValueFalse
Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:7

engine.ui.close

engine.ui.close()

Alias of engine.ui_close. Registered engine command; execution uses the actor/player's validated authority context. Arguments below are Rust registration types; Option<T> is optional. Command dispatch does not imply completion or a returned value.

Source-evidenced cross-language references
LuaEvent TableNative
LuaCommand::Ui

Source: crates/platinum-sdk/src/game/lua_catalog.rs:6

userdata<Proxy> metamethod Index

userdata<Proxy> [MetaMethod::Index](key)

Registered mlua meta_method on platinum_lua::Proxy. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Parameters (registration types)
NameTypeOptional
keyValueFalse
Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for Proxy / add_meta_method(MetaMethod::Index, closure)

Source: crates/platinum-lua/src/lib.rs:259

userdata<Proxy> metamethod NewIndex

userdata<Proxy> [MetaMethod::NewIndex](key, value)

Registered mlua meta_method on platinum_lua::Proxy. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Parameters (registration types)
NameTypeOptional
keyValueFalse
valueValueFalse
Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for Proxy / add_meta_method(MetaMethod::NewIndex, closure)

Source: crates/platinum-lua/src/lib.rs:262

userdata<Proxy> metamethod ToString

userdata<Proxy> [MetaMethod::ToString]()

Registered mlua meta_method on platinum_lua::Proxy. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for Proxy / add_meta_method(MetaMethod::ToString, closure)

Source: crates/platinum-lua/src/lib.rs:266

userdata<Proxy> metamethod Len

userdata<Proxy> [MetaMethod::Len]()

Registered mlua meta_method on platinum_lua::Proxy. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for Proxy / add_meta_method(MetaMethod::Len, closure)

Source: crates/platinum-lua/src/lib.rs:267

userdata<Proxy> metamethod Pairs

userdata<Proxy> [MetaMethod::Pairs]()

Registered mlua meta_method on platinum_lua::Proxy. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for Proxy / add_meta_method(MetaMethod::Pairs, closure)

Source: crates/platinum-lua/src/lib.rs:277

userdata<LuaLiveView>:snapshot

userdata<LuaLiveView>:snapshot()

Registered mlua method on platinum_lua::live_view::LuaLiveView. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Use receiver:snapshot(...) on that supplied value. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for LuaLiveView / add_method("snapshot", closure)

Source: crates/platinum-lua/src/live_view.rs:46

userdata<LuaLiveView>:commit

userdata<LuaLiveView>:commit(base, table)

Registered mlua method on platinum_lua::live_view::LuaLiveView. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Use receiver:commit(...) on that supplied value. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Parameters (registration types)
NameTypeOptional
basemlua::StringFalse
tableTableFalse
Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for LuaLiveView / add_method("commit", closure)

Source: crates/platinum-lua/src/live_view.rs:80

userdata<LuaLiveView>:copy_transient

userdata<LuaLiveView>:copy_transient()

Registered mlua method on platinum_lua::live_view::LuaLiveView. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Use receiver:copy_transient(...) on that supplied value. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply.

Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for LuaLiveView / add_method("copy_transient", closure)

Source: crates/platinum-lua/src/live_view.rs:90

userdata<LuaLiveView>:copy_to

userdata<LuaLiveView>:copy_to(destination, name)

Registered mlua method on platinum_lua::live_view::LuaLiveView. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Use receiver:copy_to(...) on that supplied value. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply. Source registration attributes: #[cfg(not(target_arch = "wasm32"))]

Parameters (registration types)
NameTypeOptional
destinationAnyUserDataFalse
nameStringFalse
Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for LuaLiveView / add_method("copy_to", closure)

Source: crates/platinum-lua/src/live_view.rs:106

userdata<LuaLiveView>:copy_adjacent

userdata<LuaLiveView>:copy_adjacent(location)

Registered mlua method on platinum_lua::live_view::LuaLiveView. The userdata receiver label is descriptive, not a Lua global or constructor. A trusted host supplies the actual receiver/capability and chooses its Lua variable name. Use receiver:copy_adjacent(...) on that supplied value. Parameter types are copied from the registration closure; omitted types are reported as unknown. Return types inferred by Rust are not guessed. Feature/platform gates and host authorization still apply. Source registration attributes: #[cfg(not(target_arch = "wasm32"))]

Parameters (registration types)
NameTypeOptional
locationAnyUserDataFalse
Source-evidenced cross-language references
LuaEvent TableNative
impl UserData for LuaLiveView / add_method("copy_adjacent", closure)

Source: crates/platinum-lua/src/live_view.rs:118