You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:SpawnSet
- Last edited 4 years ago by Vlash Nytefall
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"