onPropLeftClick

public static boolean onPropLeftClick(PropEntity prop, Player player)

Called by PropEntity's left-click callback. Fires ON_LEFT_CLICK on the script and returns true if the script cancelled the damage.

Return

true if the script handled and cancelled the damage

Parameters

prop

the prop that was punched

player

the player who punched it