Difference between revisions of "LUA:Stealth"

(Created page with "This function will set a spawn to stealth or invis. For the second parameter 1 = stealth, any other value = invis. ==== Syntax ==== Stealth([Spawn] Target, [int8] stealth_type) ...")
 
(Usage)
Line 12: Line 12:
 
</pre>
 
</pre>
  
When an npc with this function is hailed, they will say must hidez!!!! Followed immediately by activating stealth.
+
When an npc with this function is hailed, they will say must hidez!!! Followed immediately by activating stealth.
  
  
 
[[LUA:MiscFunctions|Back to LUA General Functions Index]]
 
[[LUA:MiscFunctions|Back to LUA General Functions Index]]

Revision as of 18:08, 13 August 2013

This function will set a spawn to stealth or invis. For the second parameter 1 = stealth, any other value = invis.

Syntax

Stealth([Spawn] Target, [int8] stealth_type)

Usage

function hailed(NPC, Spawn)
    Say(NPC, "must hidez!!!")
    Stealth(NPC, 1)
end

When an npc with this function is hailed, they will say must hidez!!! Followed immediately by activating stealth.


Back to LUA General Functions Index