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

stupid question (never used): your point is VEC3, is it?

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

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.

Posted

you're welcome :)

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.

  • Recently Browsing   0 members

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