No categories assigned

LUA:SetLuaBrain

Revision as of 21:05, 23 May 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetLuaBrain() = Makes the given spawn use a lua brain. ==== Syntax ==== SetLuaBrain(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.