Team Spartan Cookies & Milk Forums
playeruse hooks don't trigger on vehicles - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: playeruse hooks don't trigger on vehicles (/thread-3557.html)



playeruse hooks don't trigger on vehicles - The17thDoctor - 31-12-2020

Tried with both standard gmod chairs or TSCM ones, the hook simply doesn't trigger.


RE: playeruse hooks don't trigger on vehicles - mariofludd - 31-12-2020

are you near the chair and/or looking at it? I know theres some entities that dont trigger a use input unless an actual player is looking at it, even if the use input comes from the player


RE: playeruse hooks don't trigger on vehicles - The17thDoctor - 31-12-2020

I'm definitely looking at it, I'm pressing Use on it but nothing happens, tried with other entities like stargates or regular props and it doesn't have any problem at all.


RE: playeruse hooks don't trigger on vehicles - Person8880 - 31-12-2020

Vehicles should trigger the use event after the next restart. As for TSCM chairs, you should see a use event on the entity holding the chair, but you won't see one for the chair itself as it's not used directly.