TOOL/Deploy

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(replace the note with Predicted checkbox)
 
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=Yes
 
}}
 
}}

Latest revision as of 20:55, 22 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

This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Personal tools
Navigation