Garry's Mod Wiki

OnModelLoaded

  OnModelLoaded( string modelName, number numPostParams, number numSeq, number numAttachments, number numBoneControllers, number numSkins, number size )

Description

This is used internally - although you're able to use it you probably shouldn't.

Called by the engine when a model has been loaded. Caches model information with the sql.

Arguments

1 string modelName
Name of the model.
2 number numPostParams
Number of pose parameters the model has.
3 number numSeq
Number of sequences the model has.
4 number numAttachments
Number of attachments the model has.
5 number numBoneControllers
Number of bone controllers the model has.
6 number numSkins
Number of skins that the model has.
7 number size
Size of the model.