Skip to main content
Developer utility

Server-side Object Controller

Create and manage static world objects from the server with shared variables, raycast interactions and reactive helpers.

Server-side Object Controller
danger

Objects created by this resource are not client-side networked entities. Actions performed only on one client's local object will not automatically be synchronized with other players; use the provided server-side state and events for shared changes.

Features

Resource features

Object management

Object variables

Attach shared or server-only values to individual world objects.

Raycast interactions

Let players click objects through the configurable raycast interaction system.

Global events

React to object clicks, variable changes and other object activity across your resources.

Reactive helpers

Respond to changes in values such as an object’s position without building a separate tracking layer.

Example use case

Interactive winery barrels

Create the world objects

Spawn static barrel objects for a winery job or hobby without building a separate object-management layer.

Connect player actions

Use raycast clicks to open an action menu and let players place inventory items, such as apples, into a barrel.

Store shared state

Update the barrel variables on the server so its contents remain globally available and consistent.