76
Scripting / Re: Problem with new Command
« on: June 28, 2014, 19:06:54 »
Hi Geo,
Been a while, hope things have been good for you. Getting down to business...
I've put a debug comment on the tick to see if it's running, but even without that, it's blatently obvious that the command stops working as soon as you adjust the power levels
As for the command itself; this part of it is for the 'defensive' command behaviour. What the tick is supposed to do is check for any detected hostiles and if any are found, plot a new course based on vectors from the main ship to it's destination and from the main ship to the nearest hostile. This new course should take it around the hostile and towards the target (eventually) without engaging the hostile.
At this time, as soon the slider is adjusted, the main ship goes to the last plotted point and stops.
As a work around, I suppose I could use the command that marks when you reach your destination. If a certain variable is set, it could re-enable the tick...
Possibly a bit clunky, but I'll work on it. Would welcome further ideas though.
Been a while, hope things have been good for you. Getting down to business...
I've put a debug comment on the tick to see if it's running, but even without that, it's blatently obvious that the command stops working as soon as you adjust the power levels

As for the command itself; this part of it is for the 'defensive' command behaviour. What the tick is supposed to do is check for any detected hostiles and if any are found, plot a new course based on vectors from the main ship to it's destination and from the main ship to the nearest hostile. This new course should take it around the hostile and towards the target (eventually) without engaging the hostile.
At this time, as soon the slider is adjusted, the main ship goes to the last plotted point and stops.
As a work around, I suppose I could use the command that marks when you reach your destination. If a certain variable is set, it could re-enable the tick...
Possibly a bit clunky, but I'll work on it. Would welcome further ideas though.



