Three questions

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Three questions

Post 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
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:

Re: Three questions

Post 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.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post 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
Post Reply