Jump to content

Recommended Posts

Posted

Hello everything is in the title, I want to know if an Ai has landed in order to make another take off the only thing I found is to see if his speed is zero:cry:

Posted

Make small trigger zone on the runway. When AI enter in that zone (+ you can add more conditions: Altitude is: is lower than... speed is lower than...)... start new action.

Quote

Немој ништа силом, узми већи чекић!

MSI Tomahawk MAX | Ryzen 7 3700x | 32GB DDR4 3200MHz | RX 5700 XT OC Red Dragon 8GB | VPC Throttle CM3 + VPC Constellation ALPHA on VPC WarBRD Base | HP Reverb G2

 Youtube Follow Me on TWITCH! 

  • 3 months later...
Posted (edited)

Hi DCS scripting gurrus

 

I am interested to know when a IA group has landed.

I would like to use S_EVENT_LAND as suggested above but didn't understand how to use the world.addEventHandler function and didn't sucess yet to do anything with that :joystick:

Can someone point me to an exemple ?

 

Thanks

Edit : got it with this simple exemple : I execute world.addEventHandler(LandingHandler) in the ME with the following code. Hope this might help someone sometime.

LandingHandler = {}


function LandingHandler:onEvent(event) 

  if event.id == world.event.S_EVENT_LAND then
     trigger.action.outText("Land event occured", 10)
  end 

end

Edited by CougarFFW04
  • Recently Browsing   0 members

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