Natural Selection 2

Natural Selection 2

设计、发掘新的地图与模组
查找由社区制作的最佳地图与模组。准备好创建属于您自己的了吗?由此开始学习如何使用开发者用来开发游戏的工具。
The Dude67 1 2015 年 6 月 6 日 上午 11:12
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?
最后由 The Dude67 编辑于; 2015 年 6 月 6 日 上午 11:14