Back to Index Page generated: May 8, 2024, 6:16:03 AM

Expansion Deep Horizon Nav Buoy

Content

Warnings

  1. Information URL mismatch between OXP Manifest and Expansion Manager string length at character position 0

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description Deep Horizon Nav Buoy Deep Horizon Nav Buoy
Identifier oolite.oxp.cheyd.DHI_nav_buoy oolite.oxp.cheyd.DHI_nav_buoy
Title Deep Horizon Nav Buoy Deep Horizon Nav Buoy
Category Retextures Retextures
Author Cmdr. Cheyd Cmdr. Cheyd
Version 1.0.3 1.0.3
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL n/a
Download URL https://wiki.alioth.net/img_auth.php/0/02/Oolite.oxp.cheyd.dhi_nav_buoy.oxz n/a
License CC-BY-NC-SA 3.0 CC-BY-NC-SA 3.0
File Size n/a
Upload date 1610873210

Documentation

Also read http://wiki.alioth.net/index.php/Deep%20Horizon%20Nav%20Buoy

Equipment

This expansion declares no equipment. This may be related to warnings.

Ships

Name
Navigation Buoy
DHI_Nav_Buoy-rockhermit_off
Rock Hermit Buoy
Witchpoint Beacon
Navigation Buoy

Models

This expansion declares no models. This may be related to warnings.

Scripts

Path
Scripts/Deep_Horizon_Nav_Buoy.js
"use strict";
this.name = "Deep Horizon - Navigation Buoy"
this.author	= "Blake Deakins - a.k.a. Cmd. Cheyd";
this.description = "Allow navigation beacons to automatically reposition themselves if bumped out of position.";
this.version = "1.0.2";
this.copyright = "Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License";


this.shipSpawned = function()
{
	//this.ship.reportAIMessages = true;
	this.position = this.ship.position;
}
this.checkPosition = function()
{
	if(this.position.distanceTo(this.ship.position) > 50)
	{
		this.ship.savedCoordinates = this.position;
		this.ship.reactToAIMessage("POSITION_CHANGED");
		log(this.name,this.position);
		log(this.name,this.ship.position);
	}
}
this.positionMe = function()
{
	this.ship.position = this.position;
}
this.checkDistance = function()
{
	if(this.ship.position.distanceTo(this.position) > 10000)
	{
		this.ship.reactToAIMessage("FAR_AWAY");
	}
}