GM:PreDrawViewModel

From Garry's Mod
Jump to: navigation, search
 GM:PreDrawViewModel( )

Contents

Description

Called before the view model has been drawn. This hook by default also calls this on weapons, so you can use WEAPON:PreDrawViewModel.

NOTE This is a rendering hook with a 3D rendering context.
This means that the only rendering functions will work in it are functions with a 3D rendering context.

Arguments

Entity vm

This is the view model entity before it is drawn. On server-side, this entity is the predicted view model.

Arguments

Player ply

The the owner of the view model.

Arguments

Weapon weapon

This is the weapon that is from the view model.
Personal tools
Navigation