Trigger question (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


somi83 -> Trigger question (7/9/2017 8:19:23 AM)

Hi,

I am creating a scenario for improved tutorial, is there a way to create a trigger when aircraft takes-off from runway?






michaelm75au -> RE: Trigger question (7/9/2017 9:24:52 AM)

Not specifically at the moment. You could setup an area trigger around the base, and have a condition check to see if the aircraft entering it has been airborne for less than say 5 minutes.
A bit of work in Lua[:D]




somi83 -> RE: Trigger question (7/15/2017 4:28:41 AM)

Thanks,

I managed to do it with altitude, and unit enters area trigger, this is what I used as condition:

local unit = ScenEdit_GetUnit({guid='82528034-b846-4200-b5f9-069b207db6f1'})
x = (unit.altitude)
if x < 1000
then return false 
elseif x > 1000
then return true
end




Filitch -> RE: Trigger question (7/15/2017 5:27:15 AM)

it seems
return x > 1000
looks slightly simpler




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.9375