Entity.GetModel

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetModel( )
Description:
Returns the full path of the model
Returns: String
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetModel]Entity.GetModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemove the entity if it's a magnum!
Used onNewerShared.png
Code
if (ent:GetModel() == "models/weapons/w_357") then
ent:Remove()
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox