Quote:
Originally Posted by Violet CLM
This hook would be called near constantly I think. What's the use case here, what do you want to accomplish by having such a hook?
|
With the hook I want to be able to affect players in other ways besides from just being hurt.
Quote:
Originally Posted by froducish
[...] because I'm working on a script [...]
|
To clarify a bit on this, the script involves a player gambling to obtain an effect that's either a benefit or a drawback for them. Some effects will check if the player got hurt (or hurts another player) then based on that will decide to either modify either player's properties or do something else (e.g. spawning an object). This sounds like it could be just onHurt instead but I also want to affect non-enemy players sometimes so I also use onCollide for collisions that would've hurt.
For bullet-based collisions sure I could just override a bullet's behavior but this script I mentioned is designed as carefully as possible to not conflict with custom weapons, so that's not an option for me. I realize this suggestion may be a rather niche use case though
|