code for radar range

Place to get help with not working mods / modding interface.
tanelorn
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Jul 16, 2016 12:41 am
Contact:

code for radar range

Post by tanelorn »

I did a forum search for this and I was suprised not to find anything on radar range codes. I got the security camera mod, which seemed really cool. A low energy short range scanner. But the scanning range is TINY and I'd like to beef up the range a bit. However, I didn't see any radius or dimensions in the .lua code. I wonder if these are predefined values and not set in the entity itself?

Could anyone enlighten me on this so I can make the change if possible?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: code for radar range

Post by DaveMcW »

data.raw["radar"]["radar"].max_distance_of_nearby_sector_revealed = 3
tanelorn
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sat Jul 16, 2016 12:41 am
Contact:

Re: code for radar range

Post by tanelorn »

DaveMcW wrote:data.raw["radar"]["radar"].max_distance_of_nearby_sector_revealed = 3
ok that makes sense however these were set to 0 for the security camera. There is still an area covered by the camera though. its about 10 x 10 tiles.

thing.energy_per_sector = "800kJ"
thing.max_distance_of_sector_revealed = 0
thing.max_distance_of_nearby_sector_revealed = 0
thing.energy_per_nearby_scan = "19kW"
thing.energy_usage = "20kW"

I assume one value is how far it can scan distant sectors and the other is the real time scan radius?

What do you think is going on?
Post Reply

Return to “Modding help”