GetKeyDefinitions: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
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:
= getKeyDefinitions =
= getKeyDefinitions =
'''Available from 0.1.9 (upcoming; not yet publicly released). Not included in public 0.1.8. Use matching updated server and clients.'''
'''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:27, 20 October 2026

getKeyDefinitions

Available from 0.1.9. Use matching updated server and clients.

Server Lua. Part of custom keys and shared placed doors.

Syntax

items = getKeyDefinitions(owner)

Parameters and behavior

owner is an optional exact resource-name string. Omit it to list every active custom key definition. This does not list built-in items or inactive registrations.

Returns

Fresh 1-based array of canonical item strings; empty table when no entries match.

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.