No categories assigned

LUA:ToggleFollow

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