Skip to content

PlayerDataCurrent ​

GameserverMessagePlayerDataCurrent · inbound · 112 bytes

Subscribe with Engine.on("PlayerDataCurrent", fn). Print the live usage block with Engine.help("PlayerDataCurrent").

A specialized decoder also runs for this type and may add richer nested fields.

lua
local Engine = require("sdk.engine")

Engine.on("PlayerDataCurrent", function(ev)
  print(ev.health, ev.max_health, ev.level)
end)
NameKindNested
healthu32—
max_healthu32—
levelu32—
experienceu64—
level_percentu32—
xp_voucheru64—
xp_baseu32—
xp_grindingu32—
xp_boostu32—
xp_staminau32—
manau32—
max_manau32—
soulu32—
capacityu32—
staminau32—
foodu32—
offline_trainingu32—
xp_boost_timeu32—
xp_boost_purchasableu8—
mana_shieldu32—
max_mana_shieldu32—

Arcane SDK catalog generated from scripts/sdk