Page 1 of 1

Aspects/RMI's on non-player entities?

Posted: Fri Jun 26, 2020 4:48 am
by CarsonGrey
As in title, how do I implement this?

I've tried (bogus is a component of IBogus). (Delegate to one random player that connected)
INetChannel *netChannel = gEnv->pGameFramework->GetNetChannel(pEntity->GetNetEntity()->GetChannelId());
gEnv->pNetContext->DelegateAuthority(g_pBogus->GetEntityId(), netChannel);

Plus 8 or so hours on other bug fixes + digging through CE's netcode....looking at ContextView etc. sure didn't help lol.

Bogus::NetSerialize doesn't trigger. Gagh....missing something obvious but it's just not working for me.

I just want aspect 'SampleAspect' to be ran through Bogus, to send a collection of entity-independent data from the Server to all the Clients.

Re: Aspects/RMI's on non-player entities?

Posted: Sat Aug 01, 2020 7:26 am
by crocoyes6
Doing /kill @e[type=!Player] will kill all entities non players. Run it a second time to delete dropped item entities.