No categories assigned

LUA:ToggleFollow

Revision as of 21:09, 23 May 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: ToggleFollow() = Toggles the spawns follow state ==== Syntax ==== ToggleFollow(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: ToggleFollow()

Toggles the spawns follow state

Syntax

ToggleFollow(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's follow state we want to toggle

Usage

function hailed(NPC, Player)
    ToggleFollow(NPC)
end

This spawn script will toggle the follow state every time a player hails it