Difference between revisions of "LUA:ToggleFollow"

(Created page with "= LUA Functions: ToggleFollow() = Toggles the spawns follow state ==== Syntax ==== ToggleFollow(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is th...")
 
(No difference)

Latest revision as of 21:09, 23 May 2013

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