Forged Alliance Forever Forged Alliance Forever Forums 2018-01-20T16:13:44+02:00 /feed.php?f=41&t=15739 2018-01-20T16:13:44+02:00 2018-01-20T16:13:44+02:00 /viewtopic.php?t=15739&p=159649#p159649 <![CDATA[Re: How to add completely different weapon to a unit?]]> viewtopic.php?f=41&t=11796

Statistics: Posted by Uveso — 20 Jan 2018, 16:13


]]>
2018-01-13T13:23:54+02:00 2018-01-13T13:23:54+02:00 /viewtopic.php?t=15739&p=159390#p159390 <![CDATA[Re: How to add completely different weapon to a unit?]]> - if you want the weapon to be visible on the unit model (example : a new turret, a missile rack, etc), you will need to edit the SCM file with blender to add what you want. It can be difficult if youhave no experience with 3D modeling.
- if the weapon doesn't exist in the base game, you need to create your own particles, emitters, or projectile files.
- if you want your Mantis to overwrite the original one, then place it in /yourmod/hook/units/URL0107, if you want a brand new unit place it in /yourmod/units/codename.
- in the unit script, add your new weapon(s) in the Weapons list, like this
Code:
Weapons = {
LaserArms = Class(CDFLaserHeavyWeapon) {},
GCBeam = Class(ADFPhasonLaser) {},
},
And don't forget to import the new weapon before :
Code:
local ADFPhasonLaser = import ('/lua/aeonweapons.lua').ADFPhasonLaser

- in the unit blueprint, just paste the GC weapon then edit what you want. The Label field must match the name of the weapon in the unit script (here : GCBeam). And the RackBones must match the part of the unit model from where the beam will be fired, if you want it to fire from the same bone as the original Mantis shoots its little red lasers, then juste copy the RackBones field from this weapon. And when the weapon is "turreted", you will also need to edit TurretBoneMuzzle, Pitch and Yaw to match your unit.

I think that's it

Statistics: Posted by CSI — 13 Jan 2018, 13:23


]]>
2018-01-13T13:10:00+02:00 2018-01-13T13:10:00+02:00 /viewtopic.php?t=15739&p=159389#p159389 <![CDATA[Re: How to add completely different weapon to a unit?]]> Statistics: Posted by JoonasTo — 13 Jan 2018, 13:10


]]>
2018-01-13T12:48:11+02:00 2018-01-13T12:48:11+02:00 /viewtopic.php?t=15739&p=159386#p159386 <![CDATA[How to add completely different weapon to a unit?]]> Statistics: Posted by Mach — 13 Jan 2018, 12:48


]]>