Garry's Mod Wiki

Revision Difference

TOOL:LeftClick#545955

<function name="LeftClick" parent="TOOL" type="hook"> <ishook>yes</ishook> <description>Called when the user left clicks with the tool</description>⤶ <description>Called when the user left clicks with the tool.</description>⤶ <realm>Shared</realm> <predicted>Yes</predicted> <args> <arg name="tr" type="table">A trace from users eyes to wherever he aims at. See <page>Structures/TraceResult</page></arg> <arg name="tr" type="table">A trace from user's eyes to wherever they aim at. See <page>Structures/TraceResult</page></arg> </args> <rets> <ret name="" type="boolean">Return true to make the tool gun beam and play fire animations, false otherwise</ret>⤶ <ret name="" type="boolean">Return `true` to draw the tool gun beam and play fire animations, `false` otherwise.</ret>⤶ </rets> </function>