Struct AbilityObjectDestroyedBroadcast
Tells observers that an ability object ended on the server through a collision.
public struct AbilityObjectDestroyedBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Remarks
Lifetime expiry is deterministic and needs no message; a collision is not. Only the server
and the caster's own client resolve hits — see AbilityObject.ResolvesHitsLocally — so
for a third-party observer this is the ONLY thing that ends a collided object, and for the
caster it corrects a predicted miss. Sent reliably: it is one small message per
collision-ended object, and a lost one is a ghost that flies on for the rest of its life.
The container id is a pure function of (seed, spawn tick) on every peer, so the pair below
names the same object everywhere. Paired with AbilityObjectHitBroadcast, which
carries the impact itself — this message says the object ended, not what it struck.
Fields
AbilityID
Ability the object belonged to.
public long AbilityID
Field Value
CasterObjectID
NetworkObject id of the casting character.
public int CasterObjectID
Field Value
ContainerID
Deterministic container id the object lived in (identical on every peer).
public int ContainerID
Field Value
ObjectID
Object id within the container (identical on every peer).
public int ObjectID