Jump to content

Recommended Posts

To get the followers

player_inst.components.leader:CountFollowers()

To check if mob is hostile to the player:

if player_inst.HostileTest ~= nil then
  return player_inst:HostileTest(mob_inst)
elseif mob_inst.HostileToPlayerTest ~= nil then
  return mob_inst:HostileToPlayerTest(player_inst)
else
  return mob_inst:HasTag("hostile")
end
--[[
	Return:
		True: The mob is hostile
		False: The mob doesn't attack the player
--]]

 

  • Like 1

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
×
  • Create New...