Home › Community Extension › Globals

Needs the Community Extension. Not available in the unmodified game; works while the Community Extension mod is active (its own functions, or raw memory access with Mem/ObjMem).

Globals

4 functions. Signatures come from the CE wiki tables; the engine function and address from the CE source.

Function Signature Engine function Current address CE docs
Mem Globals.Mem(address: integer, fieldType: FieldType, newValue: number\) → number\ — — wiki ↗
ObjMem Globals.ObjMem(object: object, address: integer, fieldType: FieldType, newValue: number\) → number\ — — wiki ↗
RegisterCallEvent Globals.RegisterCallEvent(callback: function, address: integer) — — wiki ↗
RegisterProcessor Globals.RegisterProcessor(name: string, processor: function) — — wiki ↗