this is my first time making a vehicle or using player network
the drone is client sided and using vector forces to move, being updated every frame
then the drones network is set to the players client
would it be bad on server performance if there were multiple drones flying around at the same time?
would the drones start to look laggy if theres multiple?
I saw while testing in studio, a drone fell for a second then teleported back to where it was; like if the player disconnected for a second. Idk if this was just a studio thing but if it wasnt then would I have to use remote events to prevent this?
Would it be better to handle the drones position through remote events?
Are there any downsides of using network here and should I use a different method if there is
I’d like to know before I spend more time on this
thanks
its probably fine but if the drones are dropping when the game gets laggy then you should use unreliableremoteevents to replicate the position yourself so they just stand still when the game lags
I tried changing the vectorforce from clientside and it has no effect; but when i try creating a instance only on the client and adding a vectorforce on that, it works.
does this mean I have to spawn the drone instance on all clients individually, have no drone on the server and update the drones position from client to server to all clients? with remote events
if you want the smoothest look i would make a fake drone on each client
and one on the server (if needed) would be invisible
then the driver client sends unreliable remote events to the server, then the server sends it to everyone else
then other clients lerp the position of the drone on their side, and maybe they also assume that the drone keeps the same velocity if the updates stop coming in because of lag
if youre worried about performance you could also not send updates to clients that cant see the drone, and if you have a small map you can pack the data of the vector3 into one integer and sacrifice some precision
only thing I dont understand is and maybe they also assume that the drone keeps the same velocity if the updates stop coming in because of lag
Im thinking of just sending position data so if the player lags, the drone will freeze along with it
but what with you said, does that mean it infinitely goes in the same direction when the server stops receiving data? Would this cause the drone to teleport to where it actually is where when it receives data again? I think I’d prefer it to freeze along with the player but Im not sure yet
if you dont want the drone to freeze when new updates stop coming in, i think some games assume that the entity keeps moving in the direction it originally was, and then smoothly lerps it back to the actual position when the new data comes in