Space Engineers

Space Engineers

LiDAR Guided Missile Script
437 kommentarer
skeleton welder 17. maj kl. 10:50 
is there anything i should look out for if my prelaunch timer is not triggering? i have it named and copied into the PB correctly afaik.
re206 2. jan. kl. 23:16 
Hello! Why atmospheric rockets may not be launched? Blueprint of Sensor Version: LiDAR Platform with Sensor working in space
Bad Joke 26. nov. 2024 kl. 9:28 
"Added support for proximity sensors for warhead detonation. Missiles can now use a forward-facing camera or a sensor to assist in ensuring warhead detonation when nearing a target." Is this an editable value? I want to make an "airburst" style missile.
I have a follow on question if this is possible. Is it possible to trigger timers/event blocks with this function?
jTurp  [ophavsmand] 20. nov. 2024 kl. 14:19 
Thanks, I should be able to get to it by the weekend :)
Acid 19. nov. 2024 kl. 21:40 
@jTurp
jTurp  [ophavsmand] 17. nov. 2024 kl. 2:54 
@Acid

Thanks :) and yes Hydrogen should work everywhere.
Acid 16. nov. 2024 kl. 23:31 
The missiles can work on pertam
Acid 16. nov. 2024 kl. 23:30 
I am using hydrogen powered missiles on a pertam, the missiles have a decently high TWR and decent hydrogen storage, I was making a patriot system, since I noted the scripts ability to intercept missiles, Ill drop a link to my world, the controls for the script are on the second Hotbar in the truck. At the moment im trying to get my world to publish lol
jTurp  [ophavsmand] 16. nov. 2024 kl. 17:36 
@Acid

Couple of things to think about:

1. Are you using the proper missile type for the atmosphere? ie are you trying to use ion missiles on a planet? If so, I stop the launch because they won't work. Same with Atmo in space.

2. If you're using Atmo in atmosphere, are you too high in the atmosphere? I do run a check for max potential thrust and if it's below a threshold I stop the launch for the same reason as #1

If neither of those are the issue, feel free to drop a link to your world and I'll give it a test :)
Acid 14. nov. 2024 kl. 15:53 
Hello, I tried using missiles with this script, I've had success with it in the past, but this time I ran into trouble. The script recognizes the missiles and accounts for them on the counter, However, whenever I lock a target and try to launch a missile nothing happens. I've tried many things like recompiling, making sure the missile is working properly with the disconnect process, turning on the antennas. but still to no avail, the strangest part is that I've gotten it to work a couple of times, but most of the time it refuses to work. I've turned firing order off and on and played around with the tags on the missile ([M:1], [M:2] Etc).
jTurp  [ophavsmand] 10. sep. 2024 kl. 18:37 
@AJ Renegade

The short answer is yes to both :)

The longer answer...
1) You can toggle auto-launch and they will auto-lock onto any enemy craft that gets detected, OR you can use the commands to cycle targets and launch them manually

2) Any size missile is fine, as long as they have the required components (check the videos for details). And make sure they have enough thrust :)
AJ Renegade 9. sep. 2024 kl. 14:39 
@JTurp
2 questions, i went through the description twice, but i was wondering:

1. So this will lock onto something in the radar correct? so if it's at least below the max radar range which i think is 10km correct?

2. Can the script work with any size missile, well, but i mean, does it have to be a big small grid missile, or could it be a very small missile that could attach to the wing of an aircraft? cause i'm making aircraft using the Lidar Mapping Script as radar, and i would love to use this missile script for it,
pauldanbomrice32 25. feb. 2024 kl. 0:00 
@jTurp TY for the reply
jTurp  [ophavsmand] 5. feb. 2024 kl. 8:22 
@pauldanbomrice32

It will require either raycast or the elite sensor mod to work. It is not compatible with WC
pauldanbomrice32 4. feb. 2024 kl. 18:18 
Does this work with raycast disabled? The server I'm on has raycast disabled but still supports weaponcore radar.
Destan’s 14. dec. 2023 kl. 10:27 
Yes, it would be better if it was aimed at the target after reaching an altitude of 1000 meters when first fired.
jTurp  [ophavsmand] 1. dec. 2023 kl. 7:53 
@Destan's

You want it to fly higher? I can probably add a setting for it, yeah
Destan’s 23. nov. 2023 kl. 11:06 
After the missile is fired, it rises 200 meters and reaches the target. Can we increase this?
jTurp  [ophavsmand] 8. apr. 2023 kl. 10:04 
@Big Pipe

I also had issues when I tested with high speed limits. In *theory* it should work using the algorithm, but I think the issue is more with how SE adjusts speed per frame and at higher speeds it's harder to control.

As for using multiple connection types, the script only looks for the closest one to the missile PB, but you can easily use both by setting it up so that once your missiles are ready to fire (fully built) just disable all missile merge blocks (or connectors, whichever is further from the PB) and let the script disconnect the secondary during the firing sequence.
Acid 6. mar. 2023 kl. 14:27 
Another Question, I've been struggling to tweak the missile logic to effectively lead a target with the 1000 m/s speed limit mod installed, the missile commonly over-corrects or only leads to a certain area around the target without actually hitting it, or just does not correct enough at all and is not able to follow the targets movement. Is there any way I can tweak the missile logic to be more effective with this speed limit, and if so what parameters do I edit and at the very least could you give an explanation for what they affect.
Acid 4. mar. 2023 kl. 23:06 
Is it possible to have more than one connection type, and if so would it be possible to make it work with a modded 1x1 connector and a small merge block?
royalrollin 6. dec. 2022 kl. 14:48 
Working well !
grizli 23. nov. 2022 kl. 6:57 
these are two different types of scripts, yours is much more thoughtful.

LAMP is only suitable for use on boxes. and yours is like a death star)))))))))
jTurp  [ophavsmand] 23. nov. 2022 kl. 5:53 
You are welcome to use LAMP if it provides the functionality you need. I can't guarantee if or when I'll get around to doing anything more with this script
grizli 22. nov. 2022 kl. 14:35 
the LAMP script has a remote fire function that allows you to launch rockets from any point of the antenna's action, I would like to see this from you
jTurp  [ophavsmand] 22. nov. 2022 kl. 14:17 
Good question XD

I'll have to see if there's a way to provide you the necessary info
grizli 22. nov. 2022 kl. 14:02 
and what exactly should I send ?
jTurp  [ophavsmand] 22. nov. 2022 kl. 12:57 
@grizli

This script doesn't care where the command comes from, but neither this script nor the mapping script has that functionality built in.

You would have to write a script that broadcasts the command to other grids and on the receiving end triggers the launch.
grizli 22. nov. 2022 kl. 4:55 
is it possible to remotely trigger a rocket launch ? suppose I have several leader stations and only one rocket launch point
jTurp  [ophavsmand] 17. nov. 2022 kl. 16:28 
@Dagli

Can you send me the blueprint / world for testing? Thanks
Dagli 16. nov. 2022 kl. 16:38 
in atmosphere the missile has issues disconnecting, its very hit and miss in that it could be hours of it not working then suddenly the same grid has a successful launch then it works for an hour then stops after a few minor alterations.
HydraDominatus 21. aug. 2022 kl. 13:45 
nvm I have switched to easy lidar and its much easier
jTurp  [ophavsmand] 21. aug. 2022 kl. 13:37 
@HydraDominatus

The projector is what I use to ensure the missile is fully built before allowing it to be deployed

Initial Setup Complete means it should show up on the LCD in the lower right where the missile #s are found.

Then you would use "Set Target" and "Launch" to fire the missile (in the Lidar PB, not the missile PB) - are you able to set a target but not launch?
HydraDominatus 21. aug. 2022 kl. 11:03 
after I made missile and loaded script it have wrote that projector required (wtf?). After placing projector it writes "Initial Setup Complete" and thats all. Running with arguments does nothing, nothing appears on right side where setup complete message was
jTurp  [ophavsmand] 29. maj 2022 kl. 21:25 
@re206

No, that's so you can manually add targets to the map with the "Manual Target" command
re206 29. maj 2022 kl. 21:23 
i have new question:
{ ; The name of the dedicated targeting camera.
; Required for manual targeting.
;
Target Cam Name=Target Camera ] - it's is in your script

should I give this name to the camera on the torpedo for better guidance?
jTurp  [ophavsmand] 26. maj 2022 kl. 13:22 
This does not do ballistic missiles. It's best to target them from a higher altitude in your case.
re206 26. maj 2022 kl. 0:24 
Hello. Can missiles fly from top to bottom at targets? the problem arose on the example of an object that is located on a mountain, and torpedoes cannot hit it.
Destan’s 30. apr. 2022 kl. 0:35 
It's great that I successfully worshiped the whole installation.I can select a target, but I can't launch and clear the target
jTurp  [ophavsmand] 13. feb. 2022 kl. 18:27 
@Holymuffins

Glad to hear it. If by multiple warheads you mean throwing a bunch on the missile, yep. I arm and ignite them all
Holymuffins 13. feb. 2022 kl. 16:20 
@jTurp, looks like I had either a mod that was causing an issue, or that world, created a new one and it works just fine. Do multiple warheads work with this script? or is it limited to just one?
jTurp  [ophavsmand] 13. feb. 2022 kl. 13:16 
@Holymuffins

You can publish the blueprint and shoot me the link. I'll check when I get a chance
Holymuffins 13. feb. 2022 kl. 13:13 
Hey Jturp, I have been troubleshooting for the last 2 days trying to get these missiles to fire in atmo and have been unsuccessful. I am not sure where the problem lies. I have run the check on the missiles and everything gets a pass, The "Lidar System" has the antenna, projector, etc. I have connector, and thruster type set properly. The system will lock on to targets, and displays correctly on the LCD, but when I click launch the missile does not disconnect, I have tried manually disconnecting the missile but it still seems to receive no instruction from the lidar platform. any ideas?
jTurp  [ophavsmand] 12. jan. 2022 kl. 17:05 
Hey, this is likely a configuration issue of some sort. Please upload your world and I'll take a look.

As for reloading, the script will only turn on / off welders that are part of the block group, and you'll need to have the proper projection set up
Longitudinus 12. jan. 2022 kl. 16:59 
They are a one shot missile on my ship*
Longitudinus 12. jan. 2022 kl. 16:59 
UseMissile is false on the main PB, though the missile check says it is fine? The missiles do not reload, btw.
jTurp  [ophavsmand] 29. dec. 2021 kl. 5:43 
I should clarify, they need the firing platform to maintain lock, so not fire and forget in that sense. But no beam riding :P
jTurp  [ophavsmand] 28. dec. 2021 kl. 18:53 
These are fire and forget, not beam riding
PGI Xx HunterxX 28. dec. 2021 kl. 18:29 
is the script able to use weaponcore turrets for guiding the missiles?