Appearance
PlayerState ​
GameserverMessagePlayerState · inbound · 40 bytes
Subscribe with Engine.on("PlayerState", fn). Print the live usage block with Engine.help("PlayerState").
A specialized decoder also runs for this type and may add richer nested fields.
lua
local Engine = require("sdk.engine")
Engine.on("PlayerState", function(ev)
print(ev.state, ev.icons)
end)| Name | Kind | Nested |
|---|---|---|
state | u64 | — |
icons | u32 | — |