Struct CharacterCombatStateBroadcast
Tells observers a character entered or left combat.
public struct CharacterCombatStateBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Remarks
CharacterFlags.IsInCombat was known only to the character's own client and to the
server, so nothing on anybody else's screen could react to a peer being in a fight — a
nameplate indicator had no state to read. This is the smallest message that closes that:
one id and one bool, sent on the transition rather than continuously.
Reliable, and deliberately not buffered — a client that arrives later reads the flag out of the spawn payload, exactly as it does for death.
Fields
CharacterObjectID
NetworkObject id of the character whose combat state changed.
public int CharacterObjectID
Field Value
InCombat
True on entering combat, false on leaving.
public bool InCombat