SCRIPT FOR LASING SCENERY OBJECTS (NOT STATICS)

主页 > 用户文件 > SCRIPT FOR LASING SCENERY OBJECTS (NOT STATICS)
DCS World 2.9
其他

SCRIPT FOR LASING SCENERY OBJECTS (NOT STATICS)

类型 - 工具
上传者 - titi69
日期 - 2024-03-03 13:27:31
Map - Any map
This script is to allow any unit to lase map object (scenery objects e.g. bridges)

This script is still WIP to enhance the logic , for any bug report or logic to add contact me in ED forum https://forum.dcs.world/profile/122914-titi69/
This script is to allow any unit called jtac in ME (unit name not group name) to lase map object (scenery objects like e.g. bridges), this can be change inside the script , it can be different unit for each kind of laser, can also be your own aircraft


you need to create trigger zone where you want to lase map object and update the zone list according to the trigger zone name you have given (if zone names are not matching between script and ME it will be scanned)
if you need specific to lase specific objects like bridge i recommend to right click on the object and assign as , it will create the trigger zone for this object
if other object are near by it may be scanned as well , also some bridge are made from multiple section
1. create Trigger zone with name as desired
2. update zone list with zonenames given
3. update code list as desired
4. update the valid target list if needed
5. update JTAC name in the script with unit name used to lase target
5. create Triggers in ME ( this script DOES NOT require MIST or MOOSE) Trigger at mission start DO SCRIPT FILE , select the current script

for valid target list another script can be used to list all scenery object and export the name et coordinates in csv file

F10 Menu
Menu Structure at mission start:

+ means command
\ means submenu

\---Jtac
    +---IR Marker Off
    +---Laser Off
    +---ScanZone ZoneName1
    +---ScanZone ZoneName2
    +---ScanZone ZoneName3
....

when zones are scanned (let say there is no valide target in Zone 2, no submenu will be created for this zone)
zone 1 : 3 target
zone 2 : 0 target
zone 3 : 2 target

\---Jtac
    +---IR Marker Off
    +---Laser Off
    \---Target In Zone ZoneName1
            +---TargetName 1 - COORDS
            |   +---IR Marker On
            |   +---Laser On 1688
            |   +---Laser On 1687
            |   +---Laser On 1113
            +---TargetName 2 - COORDS
            |   +---IR Marker On
            |   +---Laser On 1688
            |   +---Laser On 1687
            |   +---Laser On 1113
            +---TargetName 2 - COORDS
            |   +---IR Marker On
            |   +---Laser On 1688
            |   +---Laser On 1687
            |   +---Laser On 1113
   \---Target In Zone ZoneName3
            +---TargetName 1 - COORDS
            |   +---IR Marker On
            |   +---Laser On 1688
            |   +---Laser On 1687
            |   +---Laser On 1113
            +---TargetName 2 - COORDS
            |   +---IR Marker On
            |   +---Laser On 1688
            |   +---Laser On 1687
            |   +---Laser On 1113
....

If you need to lase another target it is recommended to turn off the previous laser before lasing new target, even if target is destroyed it will still lase it
if you don't turn off the laser before you want to change target, it will lase both target, not big issue for IR but for laser code it can messed up your bombing
same issue if you decide to change code : turn off the previous laser( still WIP to turn off laser before changing automatically)

you can found the script and test mission in the zip
there is another script that will allow you to get scenery name in a zone exported to csv file in your Saved Games folder
../Saved Games/Scripts/scenery/logs/scenery_list.csv
this is useful to update the valid target for the main script, which actually only list bridges

Recommendation : don't create Huge trigger zones: it will take long time to scan all objects in the zone

Please test it and let me know any bugs
any suggestion to add more functionality are more than welcome
  • 许可: 免费 - 免费版, 无分发限制
  • 语言: 英文
  • 大小: 89.16 Kb
  • 下载数: 52
  • 评论: 1
关注我们