Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
UgCore is in early access. APIs can still change before the first public release. Follow progress on GitHub.
The local player, from statebags.
UgCore.LocalPlayer.GetData() -> { name, characterId? }? UgCore.LocalPlayer.IsLoaded() -> boolean UgCore.LocalPlayer.GetMetadata(key?) -> any UgCore.LocalPlayer.GetDeathState() -> 'Alive' | 'Downed' | 'Dead' UgCore.LocalPlayer.IsDead() -> boolean UgCore.LocalPlayer.IsDowned() -> boolean UgCore.LocalPlayer.GetInjuries() -> UgInjury[]
key
CreateThread(function() while true do if UgCore.LocalPlayer.IsDowned() then -- show your own downed UI end Wait(500) end end)
AddStateBagChangeHandler('ug-core:DeathState', ...)