WEAPON/PreDrawViewModel

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Aguments were swapped)
 
Line 1: Line 1:
 
{{Hook
 
{{Hook
|Name=PreDrawViewModel
 
|Parent=WEAPON
 
 
|Description=Allows you to modify viewmodel while the weapon in use before it is drawn. This hook only works if you haven't overridden {{HookFunction|GM|PreDrawViewModel}}.
 
|Description=Allows you to modify viewmodel while the weapon in use before it is drawn. This hook only works if you haven't overridden {{HookFunction|GM|PreDrawViewModel}}.
 
|Realm=Client
 
|Realm=Client
 +
|Predicted=No
 +
|Name=PreDrawViewModel
 +
|Parent=WEAPON
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 9: Line 10:
 
|name=vm
 
|name=vm
 
|desc=This is the view model entity before it is drawn.
 
|desc=This is the view model entity before it is drawn.
}}
 
{{Arg
 
|type=Player
 
|name=ply
 
|desc=The the owner of the view model.
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 19: Line 15:
 
|name=weapon
 
|name=weapon
 
|desc=This is the weapon that is from the view model.
 
|desc=This is the weapon that is from the view model.
 +
}}
 +
{{Arg
 +
|type=Player
 +
|name=ply
 +
|desc=The the owner of the view model.
 
}}
 
}}

Latest revision as of 01:58, 18 August 2015

 WEAPON:PreDrawViewModel( )

Contents

Description

Allows you to modify viewmodel while the weapon in use before it is drawn. This hook only works if you haven't overridden GM:PreDrawViewModel.

Arguments

Entity vm

This is the view model entity before it is drawn.

Arguments

Weapon weapon

This is the weapon that is from the view model.

Arguments

Player ply

The the owner of the view model.
Personal tools
Navigation