• Get full path of a model?
    2 replies, posted
Hey Guys, How can I get the full model path of an prop or vehicle I'm looking at? [CODE]local eyetrace = self.Owner:GetEyeTrace() local prop = eyetrace.Entity:GetClass() print("model path = "..prop:GetModel())[/CODE] That's how I tried it, but obviously it didn't work.
[code]local prop = eyetrace.Entity:GetClass()[/code] prop_physics has no model. Do this: [code] local eyetrace = self.Owner:GetEyeTrace() local model = eyetrace.Entity:GetModel() print("model path = "..model) [/code]
Thank you :)
Sorry, you need to Log In to post a reply to this thread.