"use strict";
this.name = "TCAT_trident";
this.author = "Thargoid";
this.copyright = "Creative Commons: attribution, non-commercial, sharealike with clauses - see readme.txt";
this.description = "Ship script for the trident missile";
this.version = "2.0";

//----------------------------------------------------------------------------------------
this.spawnTines = function () {
	var loopCounter = 0; // reset the counter
	for (loopCounter = 0; loopCounter < 9; loopCounter++) {
		var Tine = this.ship.spawnOne("TCAT_tridentTine");
		this.xDistance = ((Math.random() * 40) - 20);
		this.yDistance = ((Math.random() * 40) - 20);
		Tine.position = this.ship.position.add([this.xDistance, this.yDistance, 0]);
		Tine.orientation = this.ship.orientation;
		if (this.ship.target) {
			Tine.target = this.ship.target;
		}
	}
}