You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:Stealth"
(→Usage) |
(→Usage) |
||
| Line 20: | Line 20: | ||
Note* | Note* | ||
| − | If you use the invisibility function remove with RemoveInvis() as RemoveStealth causes a crash. If using RemoveInvis() the icon will still be visible(bug). | + | If you use the invisibility function: remove with RemoveInvis() as RemoveStealth causes a crash. |
| + | If using RemoveInvis() the icon will still be visible(bug). | ||
Revision as of 04:56, 22 August 2016
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 Spawn Functions Index
Note*
If you use the invisibility function: remove with RemoveInvis() as RemoveStealth causes a crash. If using RemoveInvis() the icon will still be visible(bug).