Space Engineers

Space Engineers

[Obsolete] Target Selection Script
5 Comments
Dabigatran 10 Jan, 2016 @ 10:39am 
Thx a lot alysius i merged pennywises simple range finder script with one of your modified status screens script today, although its so easy it took me 3 hour since i have no idea in programing , and then i saw your messages XD. i wish i d seen them earliar. Thx for the answer and scripts. keep up the good work.
Alysius  [author] 9 Jan, 2016 @ 1:18pm 
@Ghost A new blueprint to do the list of things you mentioned is uploaded to:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=597101455

For getting your current target location, you can paste the following script to a Programmable block (And also create a Text Panel named DISPLAY_PANEL):

void Main()
{
IMyTextPanel targetPanel = GridTerminalSystem.GetBlockWithName("DISPLAY_PANEL") as IMyTextPanel;
targetPanel.WritePublicTitle(VectorToString(Me.GetPosition(), 4));
}

string VectorToString(Vector3D vector, int decimals)
{
return Math.Round(vector.GetDim(0), decimals) + ":" + Math.Round(vector.GetDim(1), decimals) + ":" + Math.Round(vector.GetDim(2), decimals);
}
Alysius  [author] 6 Jan, 2016 @ 7:34pm 
@Ghost Script should be easy to code, sample to be release in weekends.

@conradfrenzy2 The GFD used by long range locking cannot determine the exact grid details, only can see bounding sphere. The best that can be done is offset targeting, meaning the missile aims some offset from the detected target center. However this cannot detect target rotation.
SeptimusCorvus 6 Jan, 2016 @ 6:30pm 
Fantastic scripts, all of them. Keep them coming please.

Currently tricking out an atmospheric strike fighter/multirole to have both anti-aircraft lock-on missiles as well as a more precise (snipe turrets off a base) type cruise missile setup with selectable fire)

Agree with ghost that a kind of precision GPS designator (that gives co-ords of the block targeted, rather than the grid's current position) would make these scripts just about perfect. Then I could fly in one-shotting drones with my semi-active missiles, then deliver two heavier armour piercing bunker busters to the target. Something like a camera guided missile, although I ideally want to be free to avoid incoming fire, or attack other targets once my missiles are released.

Though I will soon be experimenting with combining your scripts with aerodynamic wings to see if laser guided bombs could be a thing (or even gravity-fired orbital artillery).
Dabigatran 27 Dec, 2015 @ 1:28am 
dear alysius i realy liked your scripts and these are the best things in space engineers these and pennywise's scripts are above everything on space engineers thanks for great work first.

Secondly im looking for a simple script to show distance and gps of enemy and my current location on a text panel. like aim use script show gps cords, distance and my current location on a text panel and close the script.
i tried to do it myself from your scripts but i couldnt :( i have no experience and knowledge about c.
thx for great work again.