Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Add use type to PlayerUse hook #2240

Closed MaslovKK closed 11 months ago

MaslovKK commented 11 months ago

Why there's no useType in PlayerUse

garryspins commented 11 months ago

most likely because its entirely irrelevant and static, track it yourself if you need it

robotboy655 commented 11 months ago

It's not really a thing when the hook is being called. The found entity will be used with USE_ON or USE_OFF depending on the entity's capabilities. https://wiki.facepunch.com/gmod/Entity:SetUseType