OnMonsterIdVisibilityChange
Jump to navigation
Jump to search
onMonsterIdVisibilityChange
AVAILABLE FROM UPDATE 0.1.2
This event is available in G1R:MP 0.1.2 and later. The contract below includes the compatibility guarantees introduced in that update.
Triggered after a resource shows or hides the numeric identifier in a monster's nameplate.
Availability
This event is available in server-side scripts.
Callback signature
onMonsterIdVisibilityChange(monsterId, previousVisible, visible, sourceResource)
Parameters
| Name | Type | Description |
|---|---|---|
monsterId |
string |
The affected 64-bit monster identifier. |
previousVisible |
bool |
Whether the numeric identifier was previously visible. |
visible |
bool |
Whether the numeric identifier is now visible. |
sourceResource |
string |
The resource that requested the change. |
Examples
Handle the event:
addEventHandler("onMonsterIdVisibilityChange", root, function(monsterId, previousVisible, visible, sourceResource)
outputDebugString("Monster " .. monsterId .. " numeric ID visible=" .. tostring(visible))
end)
Notes
- The monster display name remains visible; only the appended numeric identifier changes.
- The authoritative setting is replayed during relevance entry and late join.