Garry's Mod Wiki

Garry's Mod Wiki

  boolean IsUselessModel( string modelName )

Description

Returns whether or not a model is useless by checking that the file path is that of a proper model.

If the string ".mdl" is not found in the model name, the function will return true.

The function will also return true if any of the following strings are found in the given model name:

  • "_gesture"
  • "_anim"
  • "_gst"
  • "_pst"
  • "_shd"
  • "_ss"
  • "_posture"
  • "_anm"
  • "ghostanim"
  • "_paths"
  • "_shared"
  • "anim_"
  • "gestures_"
  • "shared_ragdoll_"

Arguments

1 string modelName
The model name to be checked

Returns

1 boolean
Whether or not the model is useless

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...