Show emitters (in)active

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Parel803
Posts: 949
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Show emitters (in)active

Post by Parel803 »

Good evening,

I want to make a SA to see if sensors are active from friendly units.
I got the Guid for the corresponding sensors:

local u1 = ScenEdit_GetUnit({name='HOLL', guid='7F9GPQ-0HMRJ420M4PBH'})
local u2 = ScenEdit_GetUnit({name='F 77 Te Kaha [Anzac]', guid='7F9GPQ-0HMRJ2HKGD46T'})

Sensor 1: DBID: 5141, Type: Sensor, Name: Sea Master 400 [Smile] SMART, Status: Operational, GUID: 7F9GPQ-0HMRJ420M4PBL
Sensor 2: DBID: 5140, Type: Sensor, Name: Sea Watcher 100 [Seastar], Status: Operational, GUID: 7F9GPQ-0HMRJ420M4PBM

Sensor 1: DBID: 6822, Type: Sensor, Name: Furuno FAR-3320W [X-Band], Status: Operational, GUID: 7F9GPQ-0HMRJ2HKGD471
Sensor 2: DBID: 6822, Type: Sensor, Name: Furuno FAR-3320W [X-Band], Status: Operational, GUID: 7F9GPQ-0HMRJ2HKGD472
Sensor 3: DBID: 2238, Type: Sensor, Name: SMART-S Mk2, Status: Operational, GUID: 7F9GPQ-0HMRJ2HKGD473
Sensor 4: DBID: 5536, Type: Sensor, Name: SharpEye [S-Band], Status: Operational, GUID: 7F9GPQ-0HMRJ2HKGD474

I cannot figure out how to get a response to see if these sensors are active. Is this possible and if so can someone point me in the right direction?

best regards GJ
User avatar
blu3s
Posts: 1240
Joined: Fri Jul 08, 2022 9:45 am

Re: Show emitters (in)active

Post by blu3s »

Hi,

I think that yes, check the next info about units sensors.


https://commandlua.github.io/assets/Ta ... ble_Sensor
Parel803
Posts: 949
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Show emitters (in)active

Post by Parel803 »

blu3s,
Thnak you for your time and answer. Going to check.
regards GJ
Parel803
Posts: 949
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Show emitters (in)active

Post by Parel803 »

Blu3s, Sorry i forgot,
Workes nice based on sensor type.
thx for the direction.
regards GJ
User avatar
blu3s
Posts: 1240
Joined: Fri Jul 08, 2022 9:45 am

Re: Show emitters (in)active

Post by blu3s »

Parel803 wrote: Tue Jul 04, 2023 7:41 pm Blu3s, Sorry i forgot,
Workes nice based on sensor type.
thx for the direction.
regards GJ
I'm glad it helped.

Regards
Post Reply

Return to “Lua Legion”