bs_world
dead world: no traffic, no pedestrians, custom blackout.
Generated from the Lua sources in resources/[beyond]/bs_world/. 20 entries. The description column is the comment above the line in the code, so if it’s empty nobody wrote one yet.
Exports
Section titled “Exports”Call with exports.bs_world:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
CurrentPowerZone | client | client/cl_blackout.lua:248 | |
IsPowered | client | client/cl_blackout.lua:247 | |
Resweep | client | client/cl_population.lua:480 | Called when something deliberately changes the world’s population rules - raising density inside a safe zone, or lowering it again on the way out. |
FreezeTime | server | server/sv_time.lua:199 | |
FreezeWeather | server | server/sv_time.lua:230 | |
PoweredAt | server | server/sv_main.lua:51 | IS THIS SPOT POWERED? |
SetTime | server | server/sv_time.lua:188 | SET THE TIME AND LET IT RUN. |
SetWeather | server | server/sv_time.lua:215 | SET THE WEATHER, AND FREEZE IT UNLESS TOLD OTHERWISE. |
WorldState | server | server/sv_time.lua:239 |
Callbacks
Section titled “Callbacks”Server callbacks are called from a client with BSB.Await(name, timeoutMs, ...). Client callbacks are called from the server with BSB.AwaitClient(src, name, timeoutMs, ...).
| Name | Direction | Where | Description |
|---|---|---|---|
world:powerCuts | client -> server | server/sv_main.lua:65 | Which zones staff have cut, so a joining client’s lamps agree with the server’s answer about them. |
world:powerZones | client -> server | server/sv_main.lua:8 | |
world:togglePower | client -> server | server/sv_main.lua:19 |
Events
Section titled “Events”“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).
| Name | Side | Type | Where | Description |
|---|---|---|---|---|
bs:hook:player:spawned | client | local | client/cl_blackout.lua:219 | Re-assert on spawn and after a resource restart: the engine resets the artificial-light flags when the player is respawned. |
bs:world:blackoutHold | client | local | client/cl_blackout.lua:46 | THE ONE EXCEPTION. The character screen stands in an interior with no daylight. |
bs:world:request | server | net | server/sv_time.lua:123 | A client that has just connected knows nothing, and waiting up to a full sync interval to find out what time it is means joining into the wrong sky and watching it snap. |
bs:world:sync | client | net | client/cl_time.lua:66 | |
bs:world:weather | client | net | client/cl_time.lua:102 | A staff-set weather has its own event because it carries the full transition duration. |
bs:world:zoneState | client | net | client/cl_blackout.lua:74 | |
onResourceStop | client | local | client/cl_blackout.lua:223 |
Commands
Section titled “Commands”| Command | Side | Where | Description |
|---|---|---|---|
/powerlight | client | client/cl_blackout.lua:233 | PLACING A LAMP. Lamp positions are coordinates in a config file, and coordinates written from memory end up inside walls or floating over a roof. |
bs19.org · Privacy · Terms · Cookie settings