Natural Selection 2

Natural Selection 2

Luo ja löydä uusia karttoja sekä modeja
Löydä parhaat yhteisön tekemät kartat ja modit. Oletko valmis luomaan omasi? Aloita täältä oppiaksesi käyttämään samoja työkaluja, joita pelin kehittäjätkin käyttivät.
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?
Viimeisin muokkaaja on The Dude67; 6.6.2015 klo 11.14