• Removing bullet casings via lua?
    4 replies, posted
Hi there I'm currently making some plasma-type sweps via lua, and since i am using the Swep Construction Kit to make the models, i get bullet casings when i fire the weapon. So my question is: Is it possible to remove bullet casings(shells/brass, whatever you want to call it) via lua? If so, then how would i accomplish that? I'm using the CSS Ak47 model btw. Thanks
[url]http://wiki.garrysmod.com/page/WEAPON/FireAnimationEvent[/url]
I tried this but no luck, what am i doing wrong? [lua] function SWEP:FireAnimationEvent(pos,ang,event) return (event==6001) end [/lua]
put print(event) and see if there's any numbers in console when you shoot.
[QUOTE=Robotboy655;42408700]put print(event) and see if there's any numbers in console when you shoot.[/QUOTE] interesting, apperantly the casings were event 20 for some reason... But its working now, so thanks!
Sorry, you need to Log In to post a reply to this thread.