Jump to content

Recommended Posts

Posted

I need to get the current option - alarm state of a given ground group controller by script.. but I can't find the proper SSE fuction. I may force it in a state with setoption but it's not ideal for my purpose. Is it possible? If so, how?

 

thanks!

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

Posted

There is no specific function for it. Maybe you could try Unit.getRadar

 

If the alarm state is red it should return false

If the alarm state is green it should return true

 

I don't know if this function works for all types of units, let alone all types of units that have radars. It could very well just return if the primary sensors are on and if it detects anything.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...