Page 1 of 1

Three questions

Posted: Wed Nov 12, 2008 9:25 am
by Lestradae
Help, please :)

1.) Is it possible to like_ship a subentity?

2.) Will a turret only work in-game if it has ...

Code: Select all

<key>setup_actions</key>
                <array>
                        <string>initialiseTurret</string>
                </array>
... in its set-up?

3.) Could someone be so friendly and point me to the place where the new is_template is documented in a how-to form?

Answers are going to be greatly appreciated 8)

L

Re: Three questions

Posted: Wed Nov 12, 2008 10:47 am
by Commander McLane
Lestradae wrote:
1.) Is it possible to like_ship a subentity?
Of course. Shipdata-entry is shipdata-entry. No difference what kind of entity it is going to be in the game.
Lestradae wrote:
2.) Will a turret only work in-game if it has ...

Code: Select all

<key>setup_actions</key>
                <array>
                        <string>initialiseTurret</string>
                </array>
... in its set-up?
Yes, as explained in the documentation.
Lestradae wrote:
3.) Could someone be so friendly and point me to the place where the new is_template is documented in a how-to form?
I would again try to use the documentation (both parts of it).

It's really simple. You mark the shipdata-entry that you only want to use as a template. And then you reference it with like_ship in the entries that depend on it.

NOTE, however, that it currently doesn't seem to work correctly, as reported by some scripters.

...

Posted: Wed Nov 12, 2008 11:27 am
by Lestradae
Thanks, CMcL, for the enlightening commentary! :)

Concerning ...
NOTE, however, that it currently doesn't seem to work correctly, as reported by some scripters.
... I noted, and am going to observe what comes out of this, perhaps do a little testing regarding the function on my own if I find the time :roll:

Cheers 8)

L