Humble Mining script suggestion.

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

LForet3252
Posts: 103
Joined: Sun, 13. Apr 03, 20:57
x3

Humble Mining script suggestion.

Post by LForet3252 »

If I'm reading the script logic correctly..

the mining tp or ts move 3000 meters away from the astroid to get level on the x-plane..then it moves to within 700 meters, turns around, and then starts firing the back turret in which a mining laser is supposed to be..

Major con....astroids come in all sizes which means sometimes it never can come within 700meters of the center of the astroid..

Would it not be better to mount the mining laser in the front of a demeter and then move 4000 meters away from the center of the astroid to get level with the x-plane and then start firing straight ahead while moving closer 100 meters at a time..this would absolutely kill every astroid..

I'm learning how to script, albeit, slowly..it not that is is terrible hard..it is just i have very little "me" time to work on it...

Thanks to alll in advance..I have been part of this X community for about 4 years now and have enjoyed it greatly...
blackspell
Posts: 128
Joined: Sat, 6. Mar 04, 20:18
x2

Post by blackspell »

you have to calc the asteroids size before moving in. there is a get size of object functions for this (general object commands i think)
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

That's why version2 of Xai Corps Automining has a preset distance for each asteroid size.

There's no way of knowing whether a shot has hit the target, so moving forward slowly you'd have to fire 20-30 times then move again. That would take a very long time. Plus some asteroids have a safe distance buffer setting larger than the range of the MDS so are impossible to mine by autopilot anyway.

Return to “X²: The Threat - Scripts and Modding”