No categories assigned

LUA:GetArchetypeName

Revision as of 14:02, 19 July 2013 by Thefoof (talk | contribs) (Created page with "== LUA Functions: GetArchetypeName(Spawn) == Returns the string value of a spawn's archetype. Example, if used on a spawn with the adventure class "Assassin" will return the stri...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetArchetypeName(Spawn)

Returns the string value of a spawn's archetype. Example, if used on a spawn with the adventure class "Assassin" will return the string value "Scout".

Back to LUA Functions Index


Syntax

GetArchetypeName(Spawn)


Usage

 function hailed(NPC, Spawn)
   Say(NPC, "Your archetype is " .. GetArchetypeName(Spawn) .. "!")
 end

This makes the NPC respond to the player who hails it with the player's archetype.