SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Death and transfer cannot trigger the "OnPlayerExit" event for "CollisionEventHook". #4285

Closed prank0079 closed 5 months ago

SDGNelson commented 6 months ago

True. I used to tend not to trust the physics system. It would be useful to notify the event components of these events.

prank0079 commented 5 months ago

If you can, it is recommended to recreate a mod hook. The fix may break the mod I made earlier.

SDGNelson commented 5 months ago

So to clarify: Changing the behavior of CollisionEventHook to take into account player death and teleport would break your existing content?

prank0079 commented 5 months ago

If you change the trigger mode that depends on the Tag, it will break the mod I did before. Most of the time when I use Collision Event hooks, I don't need the actual player to enter.