Natural Selection 2

Natural Selection 2

Create and discover new maps and mods
Find the best maps and mods made by the community. Ready to create your own? Start here to learn how to use the same content tools that the developers used.
The Dude67 1 6 Jun, 2015 @ 11:12am
Proper name for weapons?
*Unsure if this is in the right place, sorry if it's not.*
I was following some modding tutorials and found a cool one about adding effects to weapons. It taught how to make a shotgun light things on fire, but out of curiousity wanted to try to do it with an axe. Unfortunely it seems to get messed up. I'm not sure if the naming is wrong, but where I put "axe" was originally shotgun, in hopes of well, getting an axe that lights things on fire. This is what I put below. (In the lua folder of the source of my "mod" from LaunchPad, a.k.a in mymodname.lua



function Axe:ApplyBulletGameplayEffects(player, hitEnt, impactPoint, Direction, damage, surface, showTracer) if HasMixin(hitEnt, "Fire") then hitEnt:SetOnFire(player, self) end end

Any ideas onto how to get it working?
Last edited by The Dude67; 6 Jun, 2015 @ 11:14am