Jump to content

Stalker's Mind Control Debuff


Recommended Posts

Debuff works only when it is pushed to the player entity very often:

function CustomMkDisable(player) 
	if player._customMkTask ~= nil then
		player._customMkTask:Cancel() 
		player._customMkTask = nil 
	end
end 

function CustomMkEnable(player) 
	if not player:HasTag("player") or player:HasTag("playerghost") or player._customMkTask ~= nil then return end 
	player._customMkTask = player:DoPeriodicTask(0.25, function(inst) 
		inst.components.debuffable:AddDebuff("mindcontroller", "mindcontroller") 
	end) 
end 

 

Edited by ksaab
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...