The scripting environment provides these globals:
| Name | Type | Description |
|---|---|---|
gol |
table | Main control interface |
self() |
function | Information about this entity |
var() |
function | Store variables |
var_get() |
function | Read variables |
var_getInt() |
function | Read variables as integers |
delta() |
function | Access timer counter [counts each run] |
delta_reset() |
function | Reset timer |
nearestEntity_get() |
function | Find nearby entities |
attackTargetEntity_get() |
function | Current target |
gol Control TableAll direct actions are called through:
gol.<action>()