Team Spartan Cookies & Milk Forums
playeruse hook suggestion - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Feedback (https://teamscm.co.uk/forum-9.html)
+--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html)
+--- Thread: playeruse hook suggestion (/thread-3616.html)



playeruse hook suggestion - The17thDoctor - 24-03-2021

Could there perhaps be an option so that the playeruse hook triggers upon the person pressing down the use key on an entity instead of releasing it ? Perhaps a third arguement to alternate between the two depending on need.


RE: playeruse hook suggestion - Person8880 - 25-03-2021

The hook is called based on the use type set for an entity. A lot of entities will use the "simple" type, which only triggers a use event once per press on release. Changing the use type would break entities, so this isn't really feasible.


RE: playeruse hook suggestion - The17thDoctor - 25-03-2021

Crap, I guess i'll try and work around it.