Understanding Code - removal of tanks?

Hi everyone!

Two errors I am confused about:

  1. When I spawn in my players, my first player is “Player 0” but subsequent players have random ID’s (ex - my last game’s ID was “1260519401”). Is this a big deal, or should I be fixing something?

  2. When I destroy the base, the proper “Game Over” UI pops up to disable my commands, but the tanks remain. Where is the line of code that is suppose to destroy them? Should I be adding a “NetworkServer.Destroy(gameObject);” command for when health reaches zero for an object?

Cheers!

Steve

I can answer my second question - I missed the line to destroy the tanks :slight_smile:

1 Like

Glad you figured out part 2. As for your first question, the ID being some random number is normal. The transport that creates that ID has changed since the course was launched and uses 0 then random numbers instead of 0, 1, 2, 3 etc.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms