Struct PetAttackBroadcast
Client-to-server: send the pet at the owner's target.
public struct PetAttackBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Remarks
Carries the owner's pinned and hovered targets separately, each as a NetworkObject id or
0, because the owner's attack priority (see PetAttackPriority) may try them in
either order. Both are claims, not orders: the server accepts one only if it resolves to
a spawned character in the owner's own scene, within
MAX_TARGET_DISTANCE of the owner, and passes
every pet-target rule (alive, hostile by faction, not the owner or the pet). A client can
therefore point but cannot name an arbitrary entity — including one it cannot see or
reach — as its pet's victim.
Sent in the message rather than read from the server's copy of the target frame because that copy is rate-limited and de-duplicated on the way up, so the click can beat it by up to a report interval. The server still uses its own copy for the "current" step when the message names nothing, and the highest-threat step needs nothing from the client.
Fields
HoveredTargetObjectID
The NetworkObject id of the owner's hovered target, or 0.
public int HoveredTargetObjectID
Field Value
PinnedTargetObjectID
The NetworkObject id of the owner's pinned target, or 0.
public int PinnedTargetObjectID