[Base Actor] Event when NetworkAuthority changes
D
DKFN
It would be useful to have an event when the network authority of an entity changes.
It is nice to rely on NanosWorld authority election for various calculations that needs to be done in the clientside.
For context, NACT uses a lot of triggers to handle NPC "awarness" (warning the allies, assessing the number of enemies in various ranges, etc etc).
For now, thoose triggers are serverside and testing showed they became very expensive on the server side around 500 triggers.
To optimize NACT further, I am implementing a clientside Trigger synced with the server (like Timmy serverside traces, but the reverse way).
For now, the authority is forced to the network authority of the Territory, wich is manually elected by the lib every 10s or when an event happend to handle various tasks, but it would be nice if thoose synced trigger could be handled by the NetworkAuthority of the Character of the NPC, distributing calculations further.
Thanks.
SyedMuhammad
Hey, do you think a client side event would be enough? (server side is more costly to have)
T
Timmy
SyedMuhammad I think this event is as important on the server as it is on the client. On the client, it prevents the server from being overloaded, and on the server, it ensures reliability