I’ve just recently begun learning LUA coding and im a bit befuddled.
I’m trying to make it so the origin of an entity the player is looking at (IE: whatever is in there crosshair) is output to a variable and then using effectdata it creates an explosion effect at the origin. This should only be based on the crosshair as this is being made for a SWEP. Any ideas on how I would go about doing this?
I’d really appreciate a code snippet if possible.