#How do I make a mob become hostile at night? [RESOLVED]
1 messages · Page 1 of 1 (latest)
I took a quick look
It looks like there isn't that much that is different from the spider behavior
Maybe reset back to the spider code to get it working again
Then slowly change the things you want to change and test each change so you can see what breaks
This is why I prefer Javascript because you can /reload and have actual error logs 🙂
I just tried to use the default spider behavior, and the attack aggression is working fine but even with the default the is_brightness hostility isn't doing anything.
well now it's doing something
I believe i might've found the issue. I remove navigation.climb because i thought it was part of the spider, but it still needs navigation.walk/generic to move to the player
There's one more thing though, is there a way to make them stop being angry at a target when it becomes day? For now as long as they continue attacking the player they will never stop
You could try putting the melee attack component in the hostile component group
That way it doesn't have the ability to attack if it becomes day
I don't think there's a way to clear a target sadly
Ok so apparently reecaluate_description does work, so you should try that
https://discord.com/channels/523663022053392405/1282715954438082620
I would also add a filter in the nearest attackable target that makes sure it is_daytime
I'll try that
also i don't want to add is_daytime to nearest attackable target because i want it to still be aggressive after hit by a player
on second thought i might need it for it to work