Space Engineers

Space Engineers

79 ratings
Whip's Turret Based Radar WC Addon
2
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
44.335 KB
Aug 14, 2020 @ 11:45am
Nov 19, 2022 @ 3:37am
10 Change Notes ( view )

Subscribe to download
Whip's Turret Based Radar WC Addon

In 1 collection by Sigmund Froid
WeaponCore Ingame Scripts
13 items
Description
Hello, Froid again! This time I present to you a simple small script that will communicate with Whip's Turret Based Radar to add the targets detected by WeaponCore. This script only requires you to have any WeaponCore weapon installed and will transmit the target data directly to Whip's script. For reference it uses the same method of communication as Whip's WHAM and LAMP scripts.

How to use
Make sure you have an antenna with sufficient range. Load up Whip's Radar into a programmable block in you antenna range, load this script into an programmable block on every ship that should detect targets. Every one of these ships will need at least one WeaponCore weapon. They don't have to be turrets.

This script will update the custom data of any on-grid radars to use range override, setting the range to either a defined default range or close to the range of the farthest detected entity.

Config options
In the code change the value of minimumThreat to any value between zero and ten to have the script ignore targets with lower threat level (threat level of five means equal strength). The ships will still appear on the radar if it is transmitted by any other ship.

Author's Notes
But if this is so small and simple why is this it's own script?
Adding support for WeaponCore in ingame scripts adds a lot of code to access the API. As many of Whip's scripts are already quite big (to the point that he removes unimportant blank spaces and similiar) and his script supported adding targets using IGC I figured that this script would be an easier way of adding support.

Fair Warning
With low minimum threat meteors will be detected and this will cause lag.

Bugs And Issues?
=======================
Leave a comment below.

Want to learn how to use the WeaponCore PB API?
Check this out: https://steamcommunity.com/sharedfiles/filedetails/?id=2178802013

My Workshop

Support Darkstar (Patreon)[www.patreon.com]

Thanks to Whip for allowing me to write and publish this, aswell as explaining his message system to me.


I have a github now:
https://github.com/SilicDev/WeaponCoreScripts
Popular Discussions View All (1)
0
Aug 24, 2024 @ 7:12pm
How Work?
smok_2017
104 Comments
Apr 4 @ 6:48am 
Seems to work perfectly for me. I just throw a disabled missile launcher on my ships and it detects up to 2.5k away. Though, I only have vanilla weaponcore replacements, unsure if other weaponcore mods work or not.
May 16, 2025 @ 7:26am 
Unfortunately SFCS takes complete control of gyroscopic systems, making it very incompatible with any other mod or script that wants to interact with the gyros. I'd rather have just radar, that just works.
Mar 11, 2025 @ 6:45pm 
run the original radar script with the script below on a different block and the radar works. this dude programmed WC support into it and it runs as of time of writing:
https://steamcommunity.com/sharedfiles/filedetails/?id=2232655829&searchtext=flight+control
Nov 27, 2024 @ 12:01am 
Totally broken.
Nov 23, 2024 @ 4:35pm 
@Sigmund Froid could you update the script please? it seems to be broken right now.
Apr 20, 2024 @ 5:47pm 
So that's why I can't get it to work :(
Apr 17, 2024 @ 12:11am 
been broken for a bit
used to work fine on my airfield, then stopped working somewhere down the line
Apr 8, 2024 @ 11:25am 
How do i utilize this, exactly? I have it running alongside whips radar and it doesn't seem to do anything. What exactly am i doing wrong?
Mar 24, 2024 @ 7:32am 
Hey could you please edit the code so it works with LAMP and WHAM? would be greatly appriciated!
Jan 21, 2024 @ 9:21pm 
Can this script also be used to allow for turret mode on lamp to be used in weapcore?