BoltNetwork.Instantiate and IProtocolToken

Options
Hey guys,

I'm currently trying to spawn a players character after he joins the server. I see BoltNetwork.Instantiate accepts an IProtocolToken parameter, but where am I able to read this token on the clients who receive the instantiate call?

The reason I need is that I'm setting up the players equipment & look depending on the character id, which I would add to the protocol token.

Comments

  • Yukichu
    Options
    The token added during instantiation is read during the Attached callback.

    It's accessed via the entity.attachToken. Pretty sure.
  • silentneedle
    Options
    Awesome, thanks Yukichu.