Jump to content

How to script the artillery to shoot at coordinates given by JTAC


Recommended Posts

Posted

Hi.

 

It would be nice if someone of you guys found out how to direct artillery with JTAC's laser.

 

Basically, what we need is a way to give the ARTYs an "attack point"-command at the point that is located x meters in y direction from the current player location. I'm pretty sure that you could extract the distance and the direction from somewhere.

 

So in a nutshell the ARTY would have an target point from the mission start, but they would be ordered to hold fire. When you lase the target, the the ARTY target point gets updated. Then you would trigger the artillery to open fire for six rounds or something like that.

 

Sure, you can plot targets with F10 map. But it just seems so... dull and arcade.

 

In a longer run it would be really nice to have a proper ARTY script, with fire corrections and with proper fire commands written through some console...

Posted
You can create chat-commands that trigger actions, but unfortunately, I am not aware of any mechanism that is able to read data and pass it on to another function

 

In that case you would need an add-on like SLmod that is capable to read chat. As far I know, the scripting engine itself can't do the work.

 

I know this only cause I've asked not much time ago a function that would read chat-inserted coordinates to direct support arty fire from a Kamov :).

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

Well SLMOD could just directly change the orders of the group. But that gets into a lovely issue of deconflicting mission scripting/in-game group orders with net scripting group orders. While not explicitly using JTAC, you can make artillery react to in-game weapons usage. For example using an event handler to track whenever smoke rockets are fired, where-ever those rockets land, a script will be called to order AI artillery to attack that location. If smoke or laser position were detectable by the scripting engine, those could be used also, but for not at least they aren't accessible.

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

Posted
If smoke or laser position were detectable by the scripting engine, those could be used also, but for not at least they aren't accessible.

 

this sound interesting, but how the event could be triggered to start when using the laser to point something whitout a user "start" command?

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted
this sound interesting, but how the event could be triggered to start when using the laser to point something whitout a user "start" command?

 

How about using a trigger that activates when something is lased three times during a five second interval?

  • Recently Browsing   0 members

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