Code: Select all
this.ship.setOrientation(Quaternion.random())
Code: Select all
this.ship.orientation=Quaternion.random()
Moderators: winston, another_commander, Getafix
Code: Select all
this.ship.setOrientation(Quaternion.random())
Code: Select all
this.ship.orientation=Quaternion.random()
Hello itoffshore,itoffshore wrote:In Shady Billboards under scripts/ahruman-billboard-setup.js
Code: Select all
this.willLaunch = addBillboards;
this.willExitWitchSpace = addBillboards;
Code: Select all
this.DerelictCheckTimer = new Timer(this,this.DerelictCheck,0,1)
That was superfluous, though. The timer is declared just four lines below, in line 780, and only in case it doesn't exist yet. With your change you will create another equally-named timer each time the code is executed, which is inefficient at best, and problem-creating at worst.itoffshore wrote:added the following to line 776 to declare a Timer just before it was invoked:
Code: Select all
this.DerelictCheckTimer = new Timer(this,this.DerelictCheck,0,1)
Code: Select all
if(this.DerelictCheckTimer)
this.DerelictCheckTimer.start()
else
{
this.DerelictCheckTimer = new Timer(this,this.DerelictCheck,0,1) //tip dont use an arguement when you start a timer like this,this.mytimer(arguement) it will make a CTD
player.consoleMessage("Fuel Collector", 3)
if(this.backversion)
player.consoleMessage("Established link to"+pl_target.shipDisplayName, 3)
else
player.consoleMessage("Established link to"+pl_target.displayName, 3)
}
Code: Select all
if(this.DerelictCheckTimer)
this.DerelictCheckTimer.start()
else
{
this.DerelictCheckTimer = new Timer(this,this.DerelictCheck,0,1) //tip dont use an arguement when you start a timer like this,this.mytimer(arguement) it will make a CTD
}
player.consoleMessage("Fuel Collector", 3)
if(this.backversion)
player.consoleMessage("Established link to"+pl_target.shipDisplayName, 3)
else
player.consoleMessage("Established link to"+pl_target.displayName, 3)