No categories assigned

LUA:SpawnSet


LUA:AllFunctions - SpawnSet

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Sets various settings for a NPC or Object

Syntax

SpawnSet(param1, param2, param3)

Parameters

Required - param1 (Spawn), param2 (string), param3 (string)
param1 must be a reference to a NPC or Object.
param2 is what we want to change. eg name
param3 Description not provided in the template...


Example

function hailed(NPC, Spawn)
    SpawnSet(NPC, "name", "Frankenstein")
end

When this NPC is hailed it will change its name to "Frankenstein"

Notes

/spawn set location does not require a vaule, the client's current location is used instead.

List of spawn set param2 variables you can change