-
Notifications
You must be signed in to change notification settings - Fork 24
Conversation
Sounds useful, if the code's okay.
|
I also did some ingame testing and NPCs (friendly or mobs) walking over pressure plates as well as boulders that fall onto or roll over them raise the respective event. NpcHooks.UseDoor is raised as a friendly NPC is about to open or close a door, same for mobs when they are about to open a door after they punched it several times. Though, if a mob punched a door several times but the door is unable to open because it is blocked, the event is spammed for each game frame as long as the npc stays close to that door. This should not be a big issue but I don't see a simple solution for that. |
If it becomes troublesome, we could always duplicate the first part of WorldGen.OpenDoor to check to see if the door is blocked to cut down on the event spam... |
Yes, good idea. |
So I guess we'll wait on that? |
NpcHooks.UseDoor NpcHooks.TriggerPressurePlate ProjectileHooks.TriggerPressurePlate
Updated and works fine. |
Should we API version this? |
Probably be wise :\ |
I'm sorry for all the delay, I guess? |
Added hooks:
NpcHooks.UseDoor
NpcHooks.TriggerPressurePlate
ProjectileHooks.TriggerPressurePlate
I need these hooks to fully integrate my Advanced Circuits plugin into Terraria Server and would be thankful if you could merge these in.