Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Can this be done in Lua - issue commands to neutrals?

 
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 >> Can this be done in Lua - issue commands to neutrals? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Can this be done in Lua - issue commands to neutrals? - 4/1/2020 9:28:27 AM   
jarraya

 

Posts: 297
Joined: 9/10/2007
Status: offline
I am trying to design a scenario where BLUE is to issue commands to another ship - a neutral unit.

Think of Persian Gulf, NATO vessel ordering a neutral tanker to turn to a heading and change speed.

Can this be done?

- Player selects unit
- player uses Scenario Options to select "give order"
- Player enters course and speed
- Unit follows orders

Thanks to the experts in advance!
Post #: 1
RE: Can this be done in Lua - issue commands to neutrals? - 4/1/2020 9:42:17 AM   
Parel803

 

Posts: 122
Joined: 10/10/2019
From: Netherlands
Status: offline
Not sure but Apache might made in the Seventh District Vice scenario with a special action. So you can board the vessel.

(in reply to jarraya)
Post #: 2
RE: Can this be done in Lua - issue commands to neutrals? - 4/1/2020 3:18:54 PM   
TitaniumTrout

 

Posts: 310
Joined: 10/20/2014
From: Michigan
Status: offline
Few ways, one, special action as Parel803 mentioned. Probably the easiest but least flexible.

You can use something like https://commandlua.github.io/#ScenEdit_InputBox ScenEdit_InputBox but you'd have to do some error checking to make sure you get a valid entry from the player. Otherwise when you say "Enter the heading please" someone could reply with "banana" and your trigger wouldn't do anything.

_____________________________


(in reply to Parel803)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Can this be done in Lua - issue commands to neutrals? 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.156