Table of Contents

Struct CharacterCombatStateBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Tells observers a character's movement mode changed (and again every few seconds while one is active): swimming, climbing, flying.

public struct CharacterCombatStateBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

Observers receive a character's position and rotation (NetworkTransform) and nothing of its motor, so they used to guess the mode from where the body was: a climb only once the feet were off the floor and close to a climbable's line, so the first steps up a ladder and the step off at its top showed standing, and a fall past a ladder showed climbing. One byte when it changes is the truth instead.

Fields

CharacterObjectID

NetworkObject id of the character whose combat state changed.

public int CharacterObjectID

Field Value

int

InCombat

True on entering combat, false on leaving.

public bool InCombat

Field Value

bool