No categories assigned

LUA:CopySpawnAppearance

Revision as of 20:51, 17 March 2014 by Thefoof (talk | contribs) (Created page with "= LUA Functions: CopySpawnAppearance() = Copies the appearance details from one spawn to another. ==== Syntax ==== CopySpawnAppearance(param1, param2) ==== Parameters ==== ; ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: CopySpawnAppearance()

Copies the appearance details from one spawn to another.


Syntax

CopySpawnAppearance(param1, param2)


Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the spawn we want to copy this appearance to
param2 is the spawn we are copying the appearance from

Usage

function hailed(Spawn, Target)
    CopySpawnAppearance(Spawn, Target)
end

When this NPC is hailed the appearance from the hailing player will be copied to the NPC.