Facepunch / sbox-issues

175 stars 12 forks source link

[Sync] variables on GameObjectSystems #6385

Open badandbest opened 2 months ago

badandbest commented 2 months ago

For?

S&Box

What can't you do?

GameObjectSystems are great but I keep wanting to sync variables. But that is not possible.

Alex tried to use [Sync] in a GameObjectSystem live on stream and everyone made fun of him.

How would you like it to work?

A GameObjectSystem should behave like an unowned networked object. AKA the server is the owner. https://docs.facepunch.com/s/sbox-dev/doc/ownership-7rMV3FABuV

What have you tried?

To sync any kind of variable you end up having to create a gameobject and component anyway which defeats the purpose of having a GameObjectSystem.

Additional context

No response

garrynewman commented 2 months ago

I agree with this.