Skip to content

MessHallNetworkTransform

Carsten23455 edited this page May 5, 2026 · 2 revisions

What is MessHallNetworkTransform?

MessHallNetworkTransform is a networking tool for gameobject's (custom or vanilla) that dont have a NetworkTransform.

it will sync these properites across every client in the lobby in realtime:

  • Position
  • Rotation
  • Scale

Example Uses for MessHallnetwork Transform

  • a realtime object like a ball that player's can interract with.
  • Scaling a playermodel for like a modifier
  • rotating a custom object in realtime

SideNote

  • Only the host can call the Sync method, although every client with the mod needs the transform for it to properly sync

Handling the MessHallNetworkTransform in your mod

For adding the MessHallNetworkTransform Component to your object you'd do:

MyExampleObject.AddComponent<MessHallNetworkTransform>();

then to register it the method is

MessHallNetworkTransform.RegisterObject(string objectName)

so you'd do:

var MessHallExampleTransform = MyExampleObject.GetComponent<MessHallNetworkTransform>();
MessHallExampleTransform.RegisterObject(MyExampleObject.name);

then you'll have to register networking (will be hooked into RegisterObject() next update) the method is:

MessHallNetworkTransform.StartNetworking(string objectName)

so just add:

var MessHallExampleTransform = MyExampleObject.GetComponent<MessHallNetworkTransform>();
MessHallExampleTransform.RegisterObject(MyExampleObject.name);
MessHallExampleTransform.StartNetworking(MyExampleObject.name);

Clone this wiki locally