You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:SpawnSet"
(Created page with "= LUA Functions: SpawnSet() = Works like /spawn set in game ==== Syntax ==== SpawnSet(param1, param2, param3, param4) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''...") |
|||
| Line 4: | Line 4: | ||
==== Syntax ==== | ==== Syntax ==== | ||
| − | SpawnSet(param1, param2, param3 | + | SpawnSet(param1, param2, param3) |
Revision as of 14:04, 12 September 2013
LUA Functions: SpawnSet()
Works like /spawn set in game
Syntax
SpawnSet(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (string), param3 (string)
- param1 is the spawn we are performing the spawn set on
- param2 is the variable we are changing
- param3 is what we are setting the variable to
Usage
function hailed(NPC, Spawn)
SpawnSet(NPC, "name", "New Name")
end
When this NPC is hailed it will change its name to "New Name"