Jump to content

Recommended Posts

Posted (edited)

Hello guys.

 

I really liked the Gazelle, and I find very interesting hello for Recon missions and AFAC. We could assing targets to AI aircrraft or Hellos with it.

 

I have been working in few possibilities, but the problem is how to assign the groups or unit to attack.

 

Through the function Controller.setTask(group, table task ) and AttckGroup task through a radio command we can do so. So, what I need is to identify the group to be attacked. I could also "predefine" the enemy units... but I want a Sandbox, where it does not matter who is there, you can ask the CAS flight to attack them. I read in a questionary ( i cannt find it now) that you can also send via radio the position of the enemy... it means that may be you have done something similar right now... so.

 

This is how I would do it.

 


AttackGroup = { 
 id = 'CASFlight', 
 params = { 
   groupId = [b]Group.ID[/b]
   weaponType = number,
   expend = enum AI.Task.WeaponExpend,
   directionEnabled = boolean,
   direction = Azimuth,
   altitudeEnabled = boolean,
   altitude = Distance,
   attackQtyLimit = boolean,
   attackQty = number,
 } 
}

_group = Group.getByName("CASFlight");
_controller = _group:getController();
_controller:setTask(AttackGroup);

 

To define the group to be attacked (Group.ID), it would be awesome if there is a way through the TV screen and Laser to identify such Group.ID

 

For instance, IF aiming point of the laser can return a vec2 point, we can make a triggerzone. And then, we can get the ID. of whatever group is inside the trigger zone.

 

Then, through radio command, we can place the order above.

 

So the question is.... can we get a return of the position (vec2) where the laser is aiming??? Or even better, the Group.ID itself... ??

 

PS: May be this should be in Mission editor forum, but as creators of the Gazelle, I think, you can help me with this. Such script would give LOTs of fun for the Gazelle. Passing coordenates to Aircrafts, Guns, etc.

 

I know you can use the CA but this would be more realistic! dont you think?

Edited by ESAc_matador
Posted

This was planned for the release of this module by Polychop but it was abandoned due to the complexity of the task and apparently the impossibility of making it work in MP.

But I agree with you, this would be an awesome feature and I never give up this community to find a way to do that some day. You should give a try in the mission builders thread. There are some true lua script geniuses there.

Posted

Now, i can make AI attack predefined zones through engage targets in zone, but it is just that... I predefine 5 or 6 zones, ie: north, south, east, west and Centre. You call the CAS and they go there to attack whatever they see. But it is not very elegant!

Posted

Ok, since we can get out position, (Getunitpos) we can add the vector got from the NADIR system bearing and distance. That eould give us the vec2 point.

 

The point is, how to return that value to our script? There should be a way.

Posted

If I got it right, that chat script is meant to react on chat messages that the pilots enter manually during MP.

 

But you can execute lua scripts anywhere, triggered by mission editor Actions, or virtually anywhere else.

 

The challenge is just how to get hold of the coordinate data itself.

 

Hrm, maybe that chat library could really help here ... you, the pilot enter it in the MP chat window and then the chat library logic reacts to that. But that would be at least a very different way of handling "radio comms" (i.e. not using the "Other" radio menu)

Posted (edited)
If I got it right, that chat script is meant to react on chat messages that the pilots enter manually during MP.

 

But you can execute lua scripts anywhere, triggered by mission editor Actions, or virtually anywhere else.

 

The challenge is just how to get hold of the coordinate data itself.

 

Hrm, maybe that chat library could really help here ... you, the pilot enter it in the MP chat window and then the chat library logic reacts to that. But that would be at least a very different way of handling "radio comms" (i.e. not using the "Other" radio menu)

 

We'll, yes a no. You introduce the a trigger zone, since you are introducing a point and a range. This figures through the chat are stored in a table. Then through the F10 othe menu you call the strike. May be, you chose if CAS or artillery, or whatever other things you want.

 

CAS would attack units inside triggerzone, Artillery will bombard with a disperssion (range). You could call all of this from your aircract... the most advanced the systems to locate a point, the better.with the Gazelle, you can get really good points. MANUALLY! with your laser and your Nadia

 

There should be a way to interact externally with the sim during the game. Don't we have Aries and such programs?

Edited by ESAc_matador
  • 2 weeks later...
Posted

searching how to add copilot hover orders in missions, i was just reading scripts tools evolution since 1.27, and there are a lot of things I need to learn and understand.

 

therefore, relative to your question, I suggest you may build missions using infos from MIST http://forums.eagle.ru/showthread.php?t=98616 librabry,eg LOS function, unit in zone function and so on...

will have much precise pos calculation capabilities

and your datas will be in tables, ready for use in scripts

 

then up to you to write a radiocommand menu using these

 

but need a good level in mission lua scripting

 

that question should be in mission/script thread for experts readings and suggests

Posted

The problem is, I can't tell the IA what location enemies are. I have done something very funny, but is just very simple.

 

Predefine 9 areas, that you know beforehand , and if you see enemies, via F10 call the CAS to that area. If you are wrong, the CAS does not attack, and you will know just few minutes later.

 

I ll post it when I have the briefing in english.

Posted

My idea:

 

it would be nice to use the NADIR as a recon tool.

 

If you have the viviane on your target you have distance and direction displayed.

 

Now you can show your own position in the nadir and draw a line on the F10 map. So you will get the coordinates where viviane is looking at.

 

With these coordinates you can create a new waypoint in the NADIR. Waypoint 5 for example.

 

Some "aux" functions of the NADIR are not simulated (for example "aux + 9").

The devs could use "aux + 9" as recon function.

 

So now if I select waypoint 5 on the NADIR and press "aux + 9" a script will trigger the coordinates of wp 5.

It could create a trigger zone at these coordinates or if these coordinates are in a preset zone it could activate a trigger in the mission editor etc....

 

This way it would not hit the performance because it will only run the recon script if you press "aux + 9".

It should be also work without problems in MP.

Posted

Aux 9 function is planned guys, you should be able to enter relative coordinates. So don't spend too much time scripting it, it may become outdated quite fast ;)

 

Nicolas

  • Recently Browsing   0 members

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