How are torpedo load and fire events exposed to mission scripts, if at all? #363
-
Are there on_torpedo_fired, on_torpedo_loaded, and/or on_torpedo_unloaded signals? Edit Sept 8: same for which space object weapons has targeted I have a couple specific use cases in mind for this. One is for replacing the ordinance conversion widget with custom buttons (so that I can prevent conversion to energy when the ship's energy is too high): it would be nice to update some sort of indicator for whether the manufacting option would be valid whenever the ordinance count changes because one was fired (or maybe the counts are updated at loading and unloading instead?). The second is to create a complete replacement for the existing torpedo load/unload/fire controls widget that fixes all the problems with the current widget (#75 #187 #188 #195). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To get the selection: there are get_weapons_selection, get_science_selection, get_comms_selection Regarding the rest. The engine does does not expose any events related to the loading and unloading of weapons. Also, when attempting to create a replacement for a low level widget you may find it disappointing the lag between user interaction, network traffic and the execution of script. I would encourage you to ask for engine level changes. No script runs client side so you may the round trip propagation of state changes insufficient scripting such things. |
Beta Was this translation helpful? Give feedback.
To get the selection: there are get_weapons_selection, get_science_selection, get_comms_selection
Regarding the rest. The engine does does not expose any events related to the loading and unloading of weapons.
Also, when attempting to create a replacement for a low level widget you may find it disappointing the lag between user interaction, network traffic and the execution of script. I would encourage you to ask for engine level changes. No script runs client side so you may the round trip propagation of state changes insufficient scripting such things.