Had a look at Frame's save anywhere but did not become any wiser because of it, and couldn't find the old solar systems concept study any more.
Would be happy if someone helped me out

L
Moderators: winston, another_commander
Code: Select all
player.ship.position = system.sun.position; // For example
What is probably equal toAhruman wrote:Code: Select all
player.ship.position = system.sun.position; // For example
Code: Select all
player.ship.temperature = player.ship.maxTemp * 10 000
Eric Walch wrote:What is probably equal toAhruman wrote:Code: Select all
player.ship.position = system.sun.position; // For example
Code: Select all
player.ship.temperature = player.ship.maxTemp * 10 000
Code: Select all
this.shipWillLaunchFromStation = function()
{
let launchPosition = player.ship.position.add(launchVector.multiply(10000));
this.setPos(player.ship,launchPosition);
}
Code: Select all
player.ship.position=player.ship.position.add(player.ship.orientation.vectorForward().multiply(10))
Code: Select all
this.shipWillLaunchFromStation = function()
{
player.ship.position = player.ship.position.add(player.ship.orientation.vectorForward().multiply(8000))
}
Code: Select all
player.consoleMessage("Vector forward = " + player.ship.orientation.vectorForward() );
Code: Select all
<array>
<integer>0</integer>
<integer>500000</integer>
<string>Transfer Shuttle</string>
<string>EQ_SHUTTLE</string>
<string>A transfer shuttle that can be used as a ferry for the Commander, crew and cargo of vessels which are too big or impractical to dock at stations or other carriers in the conventional way. Your carrier will be parked a few kilometres away, awaiting your return.</string>
<dict>
<key>available_to_all</key>
<true/>
<key>requires_cargo_space</key>
<integer>600</integer>
</dict>
</array>
Code: Select all
this.name = "Transfer Shuttle Script";
this.author = "Frame, Lestradae & some help from Thargoid, Kaks & another_commander";
this.copyright = "All";
this.description = "Enables the player to dock player carriers at any station or NPC carrier with an intermediate Transfer Shuttle";
this.version = "0.1";
this.shipLaunchedFromStation = function()
{
if(player.ship.hasEquipment("EQ_SHUTTLE"))
{
player.commsMessage("Commander " + player.name + ", your transfer shuttle has been released from its docking clamps and is ready for liftoff. Have a safe journey to your carrier.");
player.ship.position = player.ship.position.add(player.ship.orientation.vectorForward().multiply(4000))
}
}
this.playerRequestedDockingClearance = function()
{
if(player.ship.target) //no target no game, so it needs only to be in scanner range
{
this.targetStation = player.ship.target
if(player.ship.hasEquipment("EQ_SHUTTLE"))
{
player.commsMessage("Commander " + player.name + ", your transfer shuttle has been given docking clearance. Have a pleasant flight and please dock in the appropriate hangar section.");
this.targetStation.dockPlayer();
}
}
}
I would also remove the "available_to_all" in the equipment definition.Frame wrote:i would make the EQ_SHUTTLE less generic and call it EQ_LESTRADAE_SHUTTLE though
Code: Select all
<array>
<string>Transfer Shuttle</string>
<string>EQ_SHUTTLE</string>
<dict>
<key>available_to_all</key>
<true/>
<key>requires_cargo_space</key>
<integer>600</integer>
</dict>
</array>