Skip to main content

Server Object Examples

Worked examples in Oakford, step by step: a tip jar, your first Server Object; guild halls and an arena lobby with members, access and timers; a boss every player hits; a warband of raiders, one record each; and loot for the boss and a chest from a Server Function Library. They use what the other pages explain; none is a separate feature.

📄️Shared boss fight

A worked Server Object example in Oakford - one boss every player hits, with its health kept on the server - covering the structs or the asset's own variables, the asset rows (Readable By, Hit's Callable By, Cooldown and Value Range, a Respawn timer), the logic.rs that refuses hits while it is defeated and respawns it, Deploy, the actor and its Crowdy Server Object component, the Blueprint with typed nodes, two players in Play In Editor, switching the type off and on from Server Compute, and what players see when the boss falls.

📄️Raiders on the north road

A worked Server Object example in Oakford - a raider warband with a record for each raider - covering the asset (Holds A Record per Entity, Everyone, Owner Only, Team Only and Server Only variables, Reads World Data, Area Size 2), the logic.rs with a census of the raiders standing in an area, Hire and a skirmish timer, Deploy, the raider actor and the player's Crowdy Server Object components in This Actor's Area mode, the Blueprint with typed nodes, and two players in Play In Editor seeing different values of the same raider.