Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Trigger question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Trigger question Page: [1]
Login
Message << Older Topic   Newer Topic >>
Trigger question - 7/9/2017 8:19:23 AM   
somi83


Posts: 59
Joined: 2/6/2016
From: Novi Sad, Serbia
Status: offline
Hi,

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


Post #: 1
RE: Trigger question - 7/9/2017 9:24:52 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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

_____________________________

Michael

(in reply to somi83)
Post #: 2
RE: Trigger question - 7/15/2017 4:28:41 AM   
somi83


Posts: 59
Joined: 2/6/2016
From: Novi Sad, Serbia
Status: offline
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

(in reply to michaelm75au)
Post #: 3
RE: Trigger question - 7/15/2017 5:27:15 AM   
Filitch


Posts: 423
Joined: 6/25/2016
From: St. Petersburg, Russia
Status: offline
it seems
return x > 1000
looks slightly simpler

(in reply to somi83)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Trigger question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.781