I’m making a game with a similar building mechanic to those found in “build to survive” games. A big part of this game is destruction of builds, due to this I’m having trouble with handling network ownership of fallen structures.
server ownership doesn’t work for my case as it’s slow and floaty which makes destroying builds feel jank. I want a way to set player ownership, I just can’t figure out how to do it without it being exploit-prone.
the first issue I’m encountering is just figuring out which player to assign ownership too. Say a chunk of a build falls, it’s likely that chunk has multiple blocks from different players so it’s not like I can just set it based off whoever built the falling object. I considered setting it to the closest player but I expect lots of scenarios where multiple players would be standing on/interacting with a falling object so that likely wouldn’t work. Updating ownership is an entirely different issue as I probably need some way to track all the fallen blocks server side to reupdate ownership when appropriate (fallen structures will likely be on the ground idle for awhile).
the second issue is exploit prevention. handing network ownership of a bunch of 2x2 stud welded together cubes to clients seems very risky, especially considering players can arrange the cubes however they want.
Has anyone dealt with an issue like this before? I’ve been thinking on it for awhile and can’t come up with a solution to even the first problem I mentioned and any hypotheticals I came up with were extremely exploitable.