Player onuse
From Fortress Forever Wiki
Jump to navigationJump to search
This callback is called whenever the player presses the USE button.
Usage
function player_onuse( player ) local MyName = player:GetName() -- Says the players name on use. ChatToPlayer(player, "My Name is "..MyName.."!") end
Return false to prevent the use from happening.