#How to wait until GhostInstance initializes?

1 messages · Page 1 of 1 (latest)

delicate horizon
#

I have some systems on the client that need to operate on a GhostEntity that spawns from the server, but I need them to wait until the GhostInstance is initialized properly.

Right now I am doing this with a loop that just checks if ghostId is not 0.

Is there a more acceptable or expected way to have a system wait until a GhostInstance is properly initialized before performing operations on it?

proud ravine
#

i feel like the only 2 cases where ghostinstance would be 0 on client is if the ghost was prespawned or it was predicted spawned

#

i don't think any ghost just spawned from server should ever have ghost id 0

delicate horizon
#

you're right, these were server systems waiting for their ghostID to initialize