[1.76.1] player.ship.dockedStation.explode()

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Pleb
---- E L I T E ----
---- E L I T E ----
Posts: 908
Joined: Sun Apr 29, 2012 2:23 pm
Location: United Kingdom

[1.76.1] player.ship.dockedStation.explode()

Post by Pleb »

On the wiki it states on the Oolite JavaScript Reference: Ship page, under the explode() method:
Causes the ship to explode. Works on all ships, including the main station and the player except when docked.
So, being a bit of a rebel, I thought I'd see it it worked by using the player.ship.dockedStation.explode() line of code in a script. The station did in fact explode, with me inside, and my ship was catapulted right across the system at quite some speed, and I was unable to control my ship... :lol:

I managed to escape this by jumping to a nearby system, but I was thinking afterwards that perhaps, in reality, my ship should have been destroyed. At least damaged. But there wasn't any! Also, as the wiki says this doesn't work when the player is docked, maybe it should just not work if you are in fact docked with a station that is about to explode! :)
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3

Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: [1.76.1] player.ship.dockedStation.explode()

Post by JensAyton »

Pleb wrote:
maybe it should just not work if you are in fact docked with a station that is about to explode! :)
Why?

It doesn’t work on the player ship while docked because the player ship doesn’t really exist in the in-game universe at that point. This is a necessary limitation, not a desirable feature.
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: [1.76.1] player.ship.dockedStation.explode()

Post by Commander McLane »

Ahruman wrote:
Pleb wrote:
maybe it should just not work if you are in fact docked with a station that is about to explode! :)
Why?

It doesn’t work on the player ship while docked because the player ship doesn’t really exist in the in-game universe at that point. This is a necessary limitation, not a desirable feature.
What he said.

And—if you absolutely want to kill the player as well—nothing prevents you from exploding his ship as soon as it's launched.

The usual warning applies, though: killing the player "just for fun", without giving him any possibility to prevent it, does not make for good and enjoyable game play.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2407
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [1.76.1] player.ship.dockedStation.explode()

Post by Wildeblood »

Pleb wrote:
As the wiki says this doesn't work when the player is docked, maybe it should just not work if you are in fact docked with a station that is about to explode! :)
You've just misread the wiki.
Works on all ships, including the main station and the player except when docked.
means
Works on all ships, including the main station.
and
Works on all ships, including the player, except when docked.
There's nothing to stop you exploding other ships while the player is docked, as you've discovered.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [1.76.1] player.ship.dockedStation.explode()

Post by CommonSenseOTB »

Pleb wrote:
On the wiki it states on the Oolite JavaScript Reference: Ship page, under the explode() method:
Causes the ship to explode. Works on all ships, including the main station and the player except when docked.
So, being a bit of a rebel, I thought I'd see it it worked by using the player.ship.dockedStation.explode() line of code in a script. The station did in fact explode, with me inside, and my ship was catapulted right across the system at quite some speed, and I was unable to control my ship... :lol:
:lol:
Upon entering normal space, spawn an invisible dummy station and force-dock the player and immediately blow up the station and start a comms message "Wormhole malfunction!!!". :P
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
Post Reply