player's bullets instant-kill and you can shoot yourself and you don’t get score on kill

https://github.com/rivet-gg/examples reason: in the pre-rivet branch in examples/javascript/tanks-socketio-canvas/shared/Player.ts in the shoot function bullet damage argument is set to state.id and the id argument is set to BULLET_DAMAGE_PLAYER aka they are swapped
1 Reply
Funded.
Funded.OP2y ago
I dono't remember if shooting youorself is intentional or if the swapping is the problem with that

Did you find this page helpful?