I have this Entity I made of which I want to change the model of in a custom function. How would I go about doing that? I have tried this:
But it just throws an error about ENT being nil. Help!
self:SetModel( "blah.mdl" );
Then, to call
That’s because ENT is undefined. You can use an argument to represent the entity in your function like this:
Then call it by using change(entity)