Jump to content

Tarawa trigger when landing


Hornet81

Recommended Posts

Hello guys, I would like to know how I could make a trigger when a Harrier lands in the Tarawa. I do not know the high of the Tarawa so I could not use UNIT BELOW ALTITUDE condition. I tried setting 0 using UNIT BELOW AGL ALTITUDE but with no success. Any ideas?

Thanks

Link to comment
Share on other sites

Create a trigger zone the approximate size of the Tarawa deck.

 

A combination of UNIT INSIDE MOVING ZONE (plane, zone, tarawa), UNIT'S SPEED LOWER THAN, and UNIT'S ALTITUDE LOWER THAN should do the trick. Remember the altitude trigger will be expressed in meters.

 

To determine the correct altitude, start a plane on the deck of the Tarawa and observe the altitude shown in the F2 view.

Link to comment
Share on other sites

Or using a simple script:

 

Handler = {}
function Handler:onEvent(event)
if event.id == world.event.S_EVENT_LAND and event.initiator == Unit.getByName('Player') then
trigger.action.setUserFlag('1', true) 
end
end
world.addEventHandler(Handler)

PC: i7-13700K - MSI RTX 4080 Gaming X Trio - 32GB DDR5 6200 - VPC MongoosT-50CM3 - VKB GF pro - MFG Crosswind - Msi MPG321UR-QD + Acer XB271HU - TrackIR5 - Rift S

Link to comment
Share on other sites

  • Recently Browsing   0 members

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