Difference between revisions of "LUA:SetAdventureClass"
(Created page with "= LUA Functions: SetAdventureClass() = Sets the class of the given spawn ==== Syntax ==== SetAdventureClass(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spaw...") |
(No difference)
|
Latest revision as of 22:34, 11 September 2013
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