My ship already had turrets so I just added the extra lines of code with the coordinates for position changes required.MSA-S23 wrote:How do you put turrets on your ship?
I'm not sure where it get's the code to tell it what a turret actually is?
And make sure it is the 'Player version' of the ship you modify.
This is done in the ships oxp -> config -> Shipdata.plist
WARNING! WARNING!
DO NOT use windows Note pad to edit code.
Windoze adds an extra extension to save file and stops it working!
I use Notepad++
It is a Free download.
** ALSO, Really, I mean Really, use a copy of the addon code to mess around with. **
These are the code for my turrets.
red, blue and green numbers are the x,y and z coordinates to place turret on ship.
x,y and z are the axis for any 3d map.
Generally on a ship x = side to side y = up and down z = along the length
The next 4 digits of -1, 0 an 1's. Im not a hundred % sure but think they give direction of fire.
<key>subentities</key>
<array>
<string>cenginea -4.5 -0.5 -60.5 1 0 0 0</string>
<string>cengineb 4.5 -0.5 -60.7 1 0 0 0</string>
<string>cmount 0.0 -2.6 26.0 0 0 0 0</string>
<string>cmount 0.0 -2.6 13.0 0 0 0 0</string>
<string>cmount 0.0 -2.6 0.0 0 0 0 0</string>
<string>caduceusturret 8.0 -2.7 26.0 1 0 -1 0</string>
<string>caduceusturret 8.0 -2.7 13.0 1 0 -1 0</string>
<string>caduceusturret 8.0 -2.7 0.0 1 0 -1 0</string>
<string>caduceusturret -8.0 -2.7 26.0 1 0 1 0</string>
<string>caduceusturret -8.0 -2.7 13.0 1 0 1 0</string>
<string>caduceusturret -8.0 -2.7 0.0 1 0 1 0</string>
<string>caduceusturret 0.0 -4.0 -60.0 0 -1 -1 0</string>
<string>caduceusturret -7 -4.0 -61.0 0 -1 -1 0</string>
<string>caduceusturret 7 -4.0 -61.0 0 -1 -1 0</string>
<string>zeroturret -0.198 -7.8 -32.0 1 -1 0 0</string>
<string>zeroturret 0.0 1.4 -14.8 1 1 0 0</string>
</array>
Hope this helps.
Messing with the placement coordinates can be fun.
I once put a turret about 30 feet in front of my forward view, just floating there and working.