AI Help Please

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

It's the first case. The turrets are simply not there at all.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

I've got turrets appearing on ships by having the following in the shipdata.plist entry for the turret model:-

setup_actions = ("initialiseTurret" );

or in the other syntax:-

<key>setup_actions</key>
<array>
<string>initialiseTurret</string>
</array>

if they're not appearing have you definately got the turret model being listed in the subentities part of the mainships shipdata.plist entry? you have to list them in subentities by their name key and not the role key.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Thanks, Griff, but please read the preceding posts first. We are discussing the special case of an escort which is set up using the launch_actions-key for giving it its custom AI. Only in this case this escort will appear without turrets. Of course the turrets are correctly set up as subentities and they are initialised.
Post Reply