Jump to content

Recommended Posts

Posted (edited)

Currently objects in the LUA scripting environment have a  getDesc() method that returns various information about the object in question.

 

In the case of Units I would like to propose an additional attributes, specifically the units maximum engagement and sensor ranges (the numbers that inform the red/yellow circles on the F10 map/in the editor basically), enagement range information is somewhat available for missiles through getAmmo() but the same info is not present for ballistic weapons, and in the case of detection range getSensors() works for specific sensors but returns nil for any units that dont have any sensors beyond the mk1 eyeball.

This would allow much more dynamic and interesting behaviour from scripts without having to independently maintain this information or load it as part of the scripts in question

Edited by WirtsLegs
  • Recently Browsing   0 members

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