SetWorldDoors: Difference between revisions
Document upcoming 0.1.9 custom native keys, shared doors, server Lua callbacks and persistence; not a release |
Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits |
||
| Line 1: | Line 1: | ||
= setWorldDoors = | = setWorldDoors = | ||
'''Available from 0.1.9 | '''Available from 0.1.9. Use matching updated server and clients.''' | ||
Server Lua. Part of [[Custom keys|custom keys and shared placed doors]]. | Server Lua. Part of [[Custom keys|custom keys and shared placed doors]]. | ||
Latest revision as of 13:29, 20 October 2026
setWorldDoors
Available from 0.1.9. Use matching updated server and clients.
Server Lua. Part of custom keys and shared placed doors.
Syntax
ok, error = setWorldDoors(doors)
Parameters and behavior
doors is the complete 1-based array for the calling resource. Each row has exactly id, prefab, x, y, z, yaw; coordinates are metres, yaw degrees. Empty table removes all owned doors. Omitted rows are removed. Does not change another resource's set. See replacement and key-binding lifecycle.
Returns
true, empty error on acceptance; false, error string on validation/compatibility/limit failure. Acceptance is not a visual acknowledgement. Requires updated connected clients.
Examples and security
See Custom keys for complete registration, copy issuance, placement, persistence and callback examples. These are server functions, not client RPC endpoints. Do not forward untrusted client arguments without gameplay authorization.