Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Check postures + action?

 
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 >> Lua Legion >> Check postures + action? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Check postures + action? - 11/24/2018 8:04:42 AM   
Sharana


Posts: 343
Joined: 2/3/2016
Status: offline
Hello,

I'm making a scenario where by design you are not allowed to attack before you get permission (and postures change from unfriendly to hostile). That means I need something that will end the scenario if attack is carried out before a certain time. No idea how that make that on practice, so some help will be appreciated :)
The only way I think this is possible is to make trigger that will check every XX minutes if sides turned hostile and if yes just end the scenario. If not then to nothing and wait for the next trigger to check again :D How will example like that look like?

PS: Also is there command that can deactivate a No-nav zone, I couldn't find one.

_____________________________

Post #: 1
RE: Check postures + action? - 11/24/2018 10:29:07 AM   
Filitch


Posts: 423
Joined: 6/25/2016
From: St. Petersburg, Russia
Status: offline
Could this help you, or I misunderstood you?
quote:

Create a condition for sideA being hostile to sideB

local a = ScenEdit_SetCondition({mode='add',type='SidePosture',name='sideA hostile to sideB', ObserverSideId='sidea', TargetSideId='sideb', targetposture='hostile'})
The varaiable a will contain the condition information. It will be 'nil' if the function fails in a non-interactive script as in an event.


CommandLua 98-event_handling


< Message edited by Filitch -- 11/24/2018 10:36:48 AM >

(in reply to Sharana)
Post #: 2
RE: Check postures + action? - 11/24/2018 11:11:58 AM   
Sharana


Posts: 343
Joined: 2/3/2016
Status: offline
That is a condition, but it actually gave me idea how to make what I wanted to. There will be trigger running each XX minutes with condition the sides being hostile and action ending the scenario. Later when another action fires that gives permission to perform strikes and changes the postures to hostile it will first change the earlier event with LUA to no longer end the scenario.

_____________________________


(in reply to Filitch)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Check postures + action? 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.828