TOOL/Deploy

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
  
 
This is also called when switching from another tool on the server.
 
This is also called when switching from another tool on the server.
 +
 +
{{Note|Due to this hook being predicted, it is not called clientside in singleplayer at all, and in multiplayer it will not be called clientside if the weapon is switched with {{ClassFunction|Player|SelectWeapon}} or the "use" console command, however it will be called clientside with the default weapon selection menu and when using {{ClassFunction|CUserCmd|SelectWeapon}}}}
 
|Realm=Shared
 
|Realm=Shared
 
|Predicted=No
 
|Predicted=No
|HidePredictionWarning=No
 
|Name=Deploy
 
|Parent=TOOL
 
 
}}
 
}}

Revision as of 21:24, 20 December 2019

 TOOL:Deploy( )

Description

Called when WEAPON:Deploy of the toolgun is called.

This is also called when switching from another tool on the server.

NOTE

Due to this hook being predicted, it is not called clientside in singleplayer at all, and in multiplayer it will not be called clientside if the weapon is switched with Player:SelectWeapon or the "use" console command, however it will be called clientside with the default weapon selection menu and when using CUserCmd:SelectWeapon

Personal tools
Navigation