Nexus Modding > Scripting

Kamikazes in Nexus?!?!

<< < (4/5) > >>

Mularac:
nope. Just make sure that the index number is unique. Also, you'll have to add that weapon to the fighter's arsenal.

The_Small_Time_Modder:
how would you properly do the latter? i also tried that and i think thats what messed up my attempt to create a new ship class based off the battleship.

Mularac:
For example, let's say that the devicetype of the weapon is 120 and we want to add it to nexus' regular fighter:
All you have to do is add "120" to the defDevices line and an other slot for said device, like this:


SHIPCLASS 18
   Name "cls_Fighter"
   Mesh "earth\main\fighter"
   GUIIcon "icons\e_fighter"
   ImpactEfx 1 0.1
   FinalEfx 1 0.3
   ChannelEfx 3 1
   Civilization 0
   Velocity 450
   RotVelFact 10000
   RangeBehav 2 2
   Behaviour 0
   TargetType 2
   SupportOutput 10
   HPmax 12
   Slots 31   39 31 ;
   Slots 51 ;
   Slots 71 ;
   DefDevices 32/1000 120/1000 35 255 322 ;
   Available
SHIPCLASS

Do that with all the other fighters and it should work. Haven't tested it, though.

The_Small_Time_Modder:
if you ever test it let me know, and if possible, whenever you do test it take a few screenshots for the world to see.

I know you can do it while testing a mission in the editor, so no need to worry about that.

Mularac:
I already tested it and it works ok, if you want to include it in your mod you're welcome to do so.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version