Difference between revisions of "LUA:SetLuaBrain"

(Created page with "= LUA Functions: SetLuaBrain() = Makes the given spawn use a lua brain. ==== Syntax ==== SetLuaBrain(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' ...")
 
(No difference)

Latest revision as of 21:05, 23 May 2013

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.