Skip to content

Event Hooks

Hooks related to special items and game events.

Maniac Mask CLIENT

The Maniac Mask is a special item. When a survivor wears it, after some time they gain obsession — after which animatronics cannot screamer them.

FH_KillerObsessed(ply) HOOK CLIENT

Called after gaining the obsessed status.

lua
hook.Add("FH_KillerObsessed", "ObsessedMsg", function(ply)
	if ply == LocalPlayer() then
		chat.AddText(Color(255, 0, 0), "You have become obsessed. Kill everyone and everything.")
	end
end)

FH_KillerLostObsession(ply) HOOK CLIENT

Called after losing the obsessed status (e.g., after death).

lua
hook.Add("FH_KillerLostObsession", "ObsessionLostMsg", function(ply)
	if ply == LocalPlayer() then
		chat.AddText(Color(255, 200, 200), "Obsession is gone.")
	end
end)