Space Engineers

Space Engineers

Whip's Speed Matcher Script
202 Comments
CDClone 20 Jan @ 10:11am 
i guess matching the speed is a start :P better than the nothing at all i had 10min ago :)
Whiplash141  [author] 20 Jan @ 10:06am 
I do not, sorry
CDClone 20 Jan @ 10:04am 
if you happen to know another way to follow an enemy ship, while staying out of gun range im all ears :P otherwise i guess im at the mercy of your priorities :D :D :D
Whiplash141  [author] 20 Jan @ 10:00am 
Since keen added the ability to natively speed match grids right after I made this, it has not been a high priority with the other things I've been working on.

It is possible, I'd just need to rewrite the script to support it as that would dictate a new user interface as well.
CDClone 20 Jan @ 9:51am 
awesome and less awesome :P

any chance you feel like adding that function? :)
Whiplash141  [author] 20 Jan @ 9:29am 
> does this work with enemy ships?
Yes

> do to allso follow the altitude and if the other ship changes direction?
No
CDClone 20 Jan @ 9:25am 
does this work with enemy ships? and if so, do to allso follow the altitude and if the other ship changes direction?
Whiplash141  [author] 2 Jun, 2024 @ 10:21am 
you must be dead on. you didn't need to look through the camera, but it certainly will help lol. and yes, a turret is fine
DakotaHartwig215 2 Jun, 2024 @ 8:48am 
Do i need to actually be controlling the camera to match? Or can I just trigger it by having the camera looking in the general direction and hitting match, how dead on do you have to be to match? Is it possible to mount the camera to its own turret and match that way? I'm saying match too often
Aaron Jaeger 8 Jan, 2024 @ 3:22pm 
I figured out a way to display the Speed Matcher information to unsupported LCDs.
You need https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=407158161
1. Set up both scripts on your ship,
2. Place a LCD for Speed Matcher
3. Type (TextLCD {Name of Speed Matcher LCD}) into the 'Custom Data' of the cockpit or control seat of your choice
Whiplash141  [author] 3 Jan, 2024 @ 9:42am 
No, this was written before that was possible, so I need to rewrite the rendering code from scratch
Aaron Jaeger 3 Jan, 2024 @ 4:03am 
would it be possible to display the speed matching information in a cockpit?
Whiplash141  [author] 10 Mar, 2023 @ 11:28am 
@starseeker :"Is there a way for the camera to ignore a window block right infront of it?"

No. Raycast scans physics shapes. If you can stand on it, raycast will hit it. (Nothing scripts can do about it, its just a game mechanic)
starseeker 10 Mar, 2023 @ 6:16am 
Is there a way for the camera to ignore a window block right infront of it? i have it for extra protection but it just scans the ship its on i have to take the window block off of it to get it to scan another ship right in front other than that small issue works like a charm
Nicole Morningstar 4 Sep, 2022 @ 2:44pm 
gotcha, thanks
Whiplash141  [author] 4 Sep, 2022 @ 2:20pm 
That indicates that something is in the way of the camera provided you are using the "match" command
Nicole Morningstar 1 Sep, 2022 @ 4:55pm 
So i have an issue that when I try to scan another ship, either through the designated camera or by just pointing at another ship, the script just scans my own ship lol I can't get it to see anything else, any ideas? If it matters at all my ship has no windows at all, i can only use cameras and the third person view to see and its also has your Radar, Horizon and Door script loaded onto it, as well as Auto LCD's 2
RedFalconGamer 30 Aug, 2022 @ 11:52am 
Awesome, thanks for the clarification.
Whiplash141  [author] 30 Aug, 2022 @ 8:06am 
Those are warnings, they can be ignored and the script will run fine
RedFalconGamer 30 Aug, 2022 @ 7:53am 
I tried to activate this script in a programmable block, and immediately got this message:

Program(433,54): Warning: 'IMyTextPanel.WritePublicText(string,bool)' is obsolete: 'LCD public text is deprecated'
Program(434,8): Warning: 'IMyTextPanel.ShowPublicTextOnScreen()' is obsolete: 'LCD public text is deprecated'

Is this actually a script breaking problem, for one thing? And if it is, is there some quick fix I can apply to correct this issue? Unfortunately I don't know much of anything about script writing.
Cosmonautical_Alex 22 Aug, 2022 @ 4:10pm 
I've been trying to make a drone that follows me and avoids terrain. If I use your remote trigger script combined with this and a custom turret controller could I make this match my speed at all times without being in it?
Redstar 14 Aug, 2022 @ 10:59am 
Thank you
Whiplash141  [author] 14 Aug, 2022 @ 10:22am 
Yes, speed matching is clobbering WHAMs thruster control. Exclude all of the missiles thrusters from this script with the "Ignore" tag
Redstar 14 Aug, 2022 @ 6:05am 
Hello! First of all, congrats on all the amazing scripts! I would like to ask a question. Whenever I use this script with the WHAM script, my missile's thrusters don't fire off during the guidance delay period, but only start working once the missile's guidance begins. Any idea why this might be happening?
Lathy...or is it 9 Aug, 2022 @ 3:20pm 
I love this script; have for years. It's a must-have on basically any pursuit craft
Flint 16 Apr, 2022 @ 11:02am 
hm i did, with 1t Person Crosshair and the "Match Speed" named Cam, scanning and then "no Target" its under 5000m the Target
Whiplash141  [author] 16 Apr, 2022 @ 8:06am 
No timer block. You need to aim directly at the target
Flint 16 Apr, 2022 @ 6:06am 
hm, i use that script, but is the Timerblock needed? how to setup the Timerblock then? Doesnt work without? all the Time i try to match Speed script (LCD) says, no Target (and im cuddeling with the Target allready) through the Camera.
Whiplash141  [author] 18 Feb, 2022 @ 4:45am 
it's a warning, it will still work
BrainJax 17 Feb, 2022 @ 10:16pm 
Hiya, I'm getting a warning when code checking: 'IMyTextPanel.WritePublicText(string, bool)' is obsolete: 'LCD public text is deprecated'
Bodyboarder2528 23 Jun, 2021 @ 8:23pm 
:pog: that would be great
Vilk 23 Jun, 2021 @ 7:29pm 
Thanks. It would be a significant upgrade if you can add continuous tracking, especially with the growing combat orientation in many of the PVP servers. Love the work man, thanks again.
Whiplash141  [author] 23 Jun, 2021 @ 11:33am 
Yes. It is not a continuous track though, i may add that now that I have a solid method for tracking objects used in my missile scripts.
Vilk 23 Jun, 2021 @ 3:32am 
Does this script use raycasting to capture target?
Whiplash141  [author] 10 Nov, 2020 @ 5:05pm 
"question for you @Whiplash141: does this script match just speed with a target grid or velocity (including heading)?"

This script matches the velocity vector of whatever you ping
Dalten 10 Nov, 2020 @ 1:41pm 
@Leo_Draconus @th3W0lf3 the Keen relative dampeners function has a couple drawbacks:
- It only works from cockpit/control-seat first-person view, not third person
- you have to be very close to your target to engage relative dampeners
if you wiggle your aiming reticle away from your target, it sometimes disengages relative dampeners

question for you @Whiplash141: does this script match just speed with a target grid or velocity (including heading)?
Leo_Draconus 4 Sep, 2020 @ 5:26pm 
@Th3W0lf3 This mod is/was for versions of the game from BEFORE Keen added the Ctrl+Z function.
Th3W0lf3 27 Jul, 2020 @ 8:52pm 
why use ths when u can just ctr z in the game ths mod is potless
Whiplash141  [author] 5 Jun, 2020 @ 7:51am 
No
ExCaedibus 5 Jun, 2020 @ 12:31am 
Hello! We are using Camera Panning, like 806331071, can this script handle a panned camera view when targetting the target? Thanks for answering!
Solraven 29 May, 2020 @ 3:15am 
you are pretty good at scripts, could you make a script that could reduce max speed based on altitude? i have had some docking mishaps, and recently was following a ship i was attacking toward the ground, which looked further away, and couldn't pull up in time when i realized my mistake
Psykikk 29 Feb, 2020 @ 3:22am 
hi. love your mod. works perfectly.

sidenote / suggestion / question: would it be possible to add the following options ? (or make them esparate scripts.. not sure)
- approach (meaning once targeted, you will engage until a specidied distance is reached)
- keep distance (same as speed matching BUT on all axis, including height (very helpful for atmospheric engagements)

thanks in advance

keep up the great work
classicpark 21 Feb, 2020 @ 6:55am 
How can i change the text sice on the text panel because i can not adjust the text sice like the normall way.
Ore is this scrip only for small text panels
Bodyboarder2528 23 Jan, 2020 @ 3:47pm 
ah ok thanks
Whiplash141  [author] 23 Jan, 2020 @ 3:44pm 
Ok so in multiplayer, sync distance defaults to 3km which could explain difficulty in getting a successful scan. What you see in your screen could very well be desynced. In SP or when you are the host, there is no issue scanning :)
Bodyboarder2528 23 Jan, 2020 @ 2:42pm 
yea i am
Whiplash141  [author] 23 Jan, 2020 @ 5:24am 
Those are warnings not errors, so that's fine. Also are you in multiplayer while you are trying this?
Bodyboarder2528 23 Jan, 2020 @ 2:17am 
not until i got about 2km did it see it and match it and its on the default 5km
Bodyboarder2528 23 Jan, 2020 @ 2:14am 
and at 4km it still wont see a npc to match its speed
Bodyboarder2528 23 Jan, 2020 @ 2:11am 
hey when i compile i get this https://imgur.com/a/cEjs32X