• Removing an entity from GetEyeTrace
    2 replies, posted
I've got something like this: [CODE] local tr = self.Owner:GetEyeTrace() tr.Entity.Remove()[/CODE] But I've got this error [QUOTE]bad argument #1 to 'Remove' (Entity expected, got no value)[/QUOTE] Please help
It should be: tr.Entity[b][u]:[/u][/b]Remove() Colon, not period, for member function calls.
Huh, I'm new to that object orieted Lua, thank you :D
Sorry, you need to Log In to post a reply to this thread.