No categories assigned

LUA:SetAdventureClass

Revision as of 22:34, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetAdventureClass() = Sets the class of the given spawn ==== Syntax ==== SetAdventureClass(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spaw...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetAdventureClass()

Sets the class of the given spawn


Syntax

SetAdventureClass(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int8)
param1 is the spawn who's class we want to change
param2 is the ID of the class we want to set the spawn to


Usage

function hailed(NPC, Spawn)
    SetAdventureClass(Spawn, 1)
end

When hailed the players class will be changed to Fighter