How to handle large data chunks in Fusion

Options
WARdd
WARdd ✭✭

I'm trying to build a game where players can build their own vehicles and have them fight eachother online. I'm using the Tanknarok example to figure out the particulars of this, which corresponds closely to what I'm doing but there's a few aspects that worry me.

First of all each player can have up to 2000 parts each with their own HP count and some settings, is it a good idea to just have a networked array of 2000 ints per player to sync these sort of stats? RPCs seem like a bad idea since I would be spamming them with for example machine gun fire doing 10 damage raycasts per second.

Second question is how to sync the structure of the vehicles themselves, I have a data structure for them based on arrays of strings and primitive data types, but the total file breaks into 10kb easily. Can you set such a file as a sort of custom property for players that gets downloaded as soon as anybody joins a room?

Note I'm using Fusion for the first time, so any basic info is welcome

Comments