Space Engineers

Space Engineers

O.I.S. Lidar Rangefinder
67 Comments
8bit shadow 10 Jan @ 1:22am 
works well though instructions are bit confusing so here's a better one:


-Place a:
Camera
LCD panel
Programming block

- Rename the camera you want the raycast to come from to 'anything + [Lidar]' (e.g. range finder [Lidar])

- Rename the LCD panel you want to display the text on to 'anything + [Lidar]' (e.g. range finder infopanel [Lidar]"

- Add the programming block to your hotbar with the 'run' action and the argument: lase
- Add the programming block to your hotbar with the 'run' action and the argument: turnoff
- Add the programming block to your hotbar with the 'run' action and the argument: turnon

--For GPS storage--:
- Place another LCD panel

- Rename the LCD panel you want to display the GPS text on to anything + "[Lidar]" (e.g. range finder gpsinfo [Lidar]"

- In the programming block edit these lines:
string shipOrbitalLCDName = "[Lidar]"; (change to "[GPS]";
bool writeGPSToLCD = false; (change to true; )
bool saveGPS = false; (change to true; )
----
8bit shadow 10 Jan @ 1:21am 
Now when in game, on your hotbar;
- Press the turnon button you bound
- Press the lase button you bound
- When the distance is found don't forget to press the turnoff button that you bound

Remember: the raycast will come from the camera, NOT your character. I recommend viewing the camera when range finding.
Herboren 16 Aug, 2023 @ 9:23am 
Instructions are terrible, please re-write this to make more sense.
Veratisu 5 Aug, 2023 @ 6:46am 
Is there a video guide for setting up the programmable block in GPS saving mode?
Elfi Wolfe  [author] 6 Apr, 2021 @ 12:48am 
It used to be able to detect planets.
It is no longer able to detect planets.
With that removed I should put a range limiter on the raycast.
WJSabey 5 Apr, 2021 @ 9:39pm 
Can this do distant planets, or are they not detectable by raycasting?
DontFollowOrders 4 Feb, 2021 @ 12:40pm 
Ohhhhhhh that makes sense, thanks
Elfi Wolfe  [author] 4 Feb, 2021 @ 7:43am 
The camera charges up power to raycast 2km every second.so if you need to raycast 10km, you need to wait for the camera to charge up for 5 seconds.
DontFollowOrders 4 Feb, 2021 @ 2:51am 
What is the purpose/meaning of "laser increase 2km range each second?" Does the raycast have a velocity? How am I supposed to utilize this?
thoguht mcdanger 10 Oct, 2020 @ 11:22am 
I think I figured out a way using a different mod! The AutoLCDs 2 script has the option to have one screen mirror another, so it may be possible to have the lidar LCD mirrored to an AutoLCD. I haven't tested this, but I have done mirroring other LCD screens okay.
Elfi Wolfe  [author] 19 Sep, 2020 @ 4:02pm 
I will check to see if it checking LCD for same grid or same construct.
thoguht mcdanger 19 Sep, 2020 @ 7:33am 
Same issue as Kittamaru. Is there a way to get an LCD on a subgrid to show the results of the lidar?
Elfi Wolfe  [author] 12 Sep, 2020 @ 12:44pm 
It should replace the old target with the new one. Let me pop in and test.
GrayM3rc 12 Sep, 2020 @ 9:14am 
how do i clear current target? i aim at another asteroid and try lase, but it doesnt target that new one. old one is kept as target? help? am i missing something
Elfi Wolfe  [author] 31 Mar, 2020 @ 7:35am 
odd. let me check my ultra-light shuttle.
Kittamaru 31 Mar, 2020 @ 7:02am 
OK, so, I got the lidar itself working (I didn't realize there was a refresh button within the scripts browser... heh)

HOWEVER, I can't seem to get it to output to the LCD panel.

My situation - I have a turret using WHIPS Rotor Slave Script - so, the LCD panel (named simply [Lidar]) is on a subgrid. The Lidar P-Block is a different grid, but the camera is on the same grid as the LCD. The LIDAR works, and displays on the P-Block screen, but not on the LCD panel.

I did change the writeGPSToLCD to true, but it doesn't seem to be doing anything.
Kittamaru 31 Mar, 2020 @ 4:16am 
Aye, I subscribed, re-loaded my game just to be safe, but when I go to my P-Block, it doesn't seem to show up there. I'll check again today (perhaps I was just being silly while tired)
Elfi Wolfe  [author] 30 Mar, 2020 @ 12:15pm 
You subscribe and then turn on PB in world settings, then you can open the PB for editing and then you can find it in the list of steam script. it filters based on local and workshop.
Kittamaru 30 Mar, 2020 @ 11:57am 
Perhaps I'm just being really stupid, but I'm not entirely sure how to use this - I don't see it showing in my scripts browser in the programmable block?
Elfi Wolfe  [author] 12 Nov, 2019 @ 7:09am 
That is what is returned from the Raycast call to the Physics Engine. That is part of SE code.
Tetra 11 Nov, 2019 @ 11:01pm 
Please make a setting to disable the ability to detect planets it make it nearly impossible while floating in the air to hit a ground vehicle
Elfi Wolfe  [author] 1 Sep, 2018 @ 4:50pm 
Only a camera has a raycast. the Laser Antenna does not have script access to a raycast.
Kim Jong Chill 1 Sep, 2018 @ 4:46pm 
Can this and the lidar homing script use the laser antenna instead of the camera? Not only would it look cooler I think aiming with a laser is probably a bit more accurate.
Enigmus 30 Aug, 2018 @ 9:14pm 
Thank you for the rapid response.
Elfi Wolfe  [author] 30 Aug, 2018 @ 4:50pm 
Fixed, tested and uploaded.
Elfi Wolfe  [author] 30 Aug, 2018 @ 4:37pm 
Ah.. turns out it is the commas that break it. Working on it now.
Enigmus 30 Aug, 2018 @ 11:54am 
The GPS LCD screen output appears to add a space to the begining of the GPS output. This stops the coordinate from auto-populating in the GPS tab. Could we get that space removed please?
Elfi Wolfe  [author] 30 Jun, 2018 @ 6:35pm 
it gives the center of the bounding object of the object lased.
ProtocolPalpatine 30 Jun, 2018 @ 6:31pm 
it gives the gps of the center of the object? cuz my drone smashed into the roid lol normally i set the gps manually on the crust and have no issues lol
Elfi Wolfe  [author] 30 Jun, 2018 @ 6:13pm 
I'd have to check to see if it is only own grid or not. been a while since I designed that one.
ProtocolPalpatine 30 Jun, 2018 @ 6:11pm 
if i make a rotor turret would to put the camera on would it still work?
Elfi Wolfe  [author] 30 Jun, 2018 @ 6:05pm 
No. There is no raycast in a turret camera.
ProtocolPalpatine 30 Jun, 2018 @ 5:57pm 
could i use a turret camera view instead of a camera?
ProtocolPalpatine 30 Jun, 2018 @ 5:18pm 
@Elfi Wolfe im using this mod with rdavs auto mining script :D super nice
ProtocolPalpatine 30 Jun, 2018 @ 5:17pm 
i forgot lase argument lol derp
Elfi Wolfe  [author] 30 Jun, 2018 @ 5:01pm 
the raycast has to hit the asteroid. Just tested and working.
ProtocolPalpatine 30 Jun, 2018 @ 4:52pm 
@Elfi Wolfe it doesnt detect the roids it just looks through them as if they arent their.
Elfi Wolfe  [author] 30 Jun, 2018 @ 12:26pm 
if you add the text panel [GPS] it will put the gps on that screen then if you use the screen it will upload into the suit GPS. So yes.
ProtocolPalpatine 30 Jun, 2018 @ 11:39am 
can i get roid gps with this?
Elfi Wolfe  [author] 11 Apr, 2018 @ 8:24am 
The GPS function I think is to center of grid.
Switch 11 Apr, 2018 @ 8:18am 
ok, thanks, just got to get my accuracy on point then :D
Elfi Wolfe  [author] 11 Apr, 2018 @ 8:16am 
the rangefinder is right to where the raycast hits a item on that grid. it does not track, just gives you ETA to the spot where raycast hit something.
Switch 11 Apr, 2018 @ 8:14am 
Nevermind, got it to work. Nice mod, though is there a way to target a specific block on a grid, as in the one i am currently aiming at ?
Elfi Wolfe  [author] 11 Apr, 2018 @ 8:05am 
Standalone script in vanilla. You do need to put a name in or at end of camera name default is [Lidar]
Switch 11 Apr, 2018 @ 7:58am 
Do we need new blocks for this to work or is this a standalone script with the vanilla cameras ? I can't seem to get it to work.
Elfi Wolfe  [author] 12 Feb, 2018 @ 7:35pm 
or put the PB on the same grid as text panel and camera.
Elfi Wolfe  [author] 12 Feb, 2018 @ 7:06pm 
or a timer block that call the PB with rebuild in arguemnt spot
Elfi Wolfe  [author] 12 Feb, 2018 @ 7:03pm 
It is a Keen Bug. it cannot see subgrids on world load. just use command rebuild to cause it to rebuild the system in the PB
PGI Xx HunterxX 12 Feb, 2018 @ 6:23pm 
you can have alook at it now its called GC WIP in my workshop items
Elfi Wolfe  [author] 12 Feb, 2018 @ 4:37pm 
If you have it up on workshop i can look at it.