replaceShip JS method question

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

Moderators: winston, another_commander

Post Reply
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

replaceShip JS method question

Post by JazHaz »

On the wiki, Oolite JavaScript Reference: Player - replaceShip:
This method can only be called while the player is docked at a station.
I want to know if this only works at main stations, or whether it can be done at an OXP station?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: replaceShip JS method question

Post by cim »

JazHaz wrote:
On the wiki, Oolite JavaScript Reference: Player - replaceShip:
This method can only be called while the player is docked at a station.
I want to know if this only works at main stations, or whether it can be done at an OXP station?
Any station.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: replaceShip JS method question

Post by JazHaz »

cim wrote:
JazHaz wrote:
On the wiki, Oolite JavaScript Reference: Player - replaceShip:
This method can only be called while the player is docked at a station.
I want to know if this only works at main stations, or whether it can be done at an OXP station?
Any station.
What about at a Behemoth? Although was thinking about defining it as a station.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: replaceShip JS method question

Post by cim »

JazHaz wrote:
What about at a Behemoth? Although was thinking about defining it as a station.
A Behemoth is a station. (The term "carrier" is often used for "stations which have a non-zero top speed", but they're still stations)
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: replaceShip JS method question

Post by JazHaz »

cim wrote:
JazHaz wrote:
What about at a Behemoth? Although was thinking about defining it as a station.
A Behemoth is a station. (The term "carrier" is often used for "stations which have a non-zero top speed", but they're still stations)
Even better! :lol:
Post Reply