:( we need negetive momentum :P (tractor beam!)

Post ideas & suggestions you have pertaining to the game here.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

You should be easily able to set the range of the tractor. If you have the tractor activated on a targeted ship, simply add a distance check to the routine before you allow it to 'attach' to the target.

probably use something like (objGetDistance gSource target) to find the distance (in light-seconds?) then an (if to check if you are close enough.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

(objGetDistance gSource target)

already in there, just need to put the check in. Will be in the next update along with an AI ship using it, likely today, but not guaranteed.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

It appears to work, but it *laaaaags*

When commenting out the code it appears like it is the linear search and not the recurring timer events. Trying to fix.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

F50 wrote:Remember that this uses only a script. There is no armor damage. In fact, there isn't even a weapon being used.
Oh, i meant if George implemented it directly by allowing neg. values
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Post Reply