Garry's Mod Wiki

GM:OnViewModelChanged

GM:OnViewModelChanged

  GM:OnViewModelChanged( Entity viewmodel, string oldModel, string newModel )

Description

Called when the player changes their weapon to another one - and their viewmodel model changes.

This is not always called clientside.

Issue Tracker: 2473

Arguments

1 Entity viewmodel
The viewmodel that is changing
2 string oldModel
The old model
3 string newModel
The new model

Special Pages


Wikis

?

Render Time: 74ms

DB GetPage 44
Generate Html 4
SaveChanges (1) 16
Render Body 0
Render Sidebar 7