Jump to content

Fire At Point using LUA - problems with targeting point


Recommended Posts

Posted

I am not able to work out what is not working with a FireAtPoint. I am targeting an APC with a mortar group.

 

What values do I need to use for _point. I have tried LO, LL and MGRS and nothing works properly.

FireAtPoint =   
{ 
  id = 'FireAtPoint', 
  params =  { point =  _point,  radius  = 10 }
} 

 

I can set the task perfectly but the targeting is WAY off.

 

Unit.getbyName('mortar_group'):getController():setTask(FireAtPoint)

Posted

That was a good question. It was Vec2 but not well formed Vec2. It gave me a result and that's what threw me. I would have rather had a error msg.

 

Thanks for the reply. It helped.

  • Recently Browsing   0 members

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