![]() |
|
hook("starfall_used") returning a repeater - 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: hook("starfall_used") returning a repeater (/thread-3219.html) |
hook("starfall_used") returning a repeater - The17thDoctor - 18-04-2020 Could the "starfall_used" hook return the used entity in case it's for example a starfall repeater ? Would be very handy to make for example a screen with duplicates on which we could still interact with. EDIT : I found out you could just return the player's aim entity. RE: hook("starfall_used") returning a repeater - Person8880 - 18-04-2020 The hook already passes through the repeater screen entity as the second argument if use was pressed on a repeater, it just wasn't mentioned in the documentation. I've corrected the docs now. |