No categories assigned

LUA:SetLuaBrain

LUA Functions: SetLuaBrain()

Makes the given spawn use a lua brain.

Syntax

SetLuaBrain(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to use a lua brain

Usage

function spawn(Spawn)
    SetLuaBrain(Spawn)
end

Makes the spawn use a lua brain.

Notes

The spawn script MUST have a "Think" function or else the console will be spammed with errors.