Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Specific Unit Attacks Specific Unit

 
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 >> Specific Unit Attacks Specific Unit Page: [1]
Login
Message << Older Topic   Newer Topic >>
Specific Unit Attacks Specific Unit - 8/19/2020 9:12:31 PM   
Sybaris


Posts: 55
Joined: 3/14/2015
Status: offline
I'm trying to get a couple aircraft (Backfire B's w/ AS-4's) in a flight to attack a specific ship LCC-19 Blue Ridge and tried to use this:

ScenEdit_AttackContact('Flight 3079','336', {mode='1', mount=0, weapon=1820, qty=2})

Not working

Is it possible to do this and I'm just LUA ignorant?

Any help much appreciated
Post #: 1
RE: Specific Unit Attacks Specific Unit - 8/20/2020 12:16:32 AM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
Maybe don't include mount=0 if the weapon in question is on the aircraft loadout to be used.

from docs:
quote:

Note: The function will use the weapon from the aircraft loadout if applicable when no mount is supplied.


If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.

< Message edited by KnightHawk75 -- 8/20/2020 12:17:59 AM >

(in reply to Sybaris)
Post #: 2
RE: Specific Unit Attacks Specific Unit - 8/21/2020 11:52:05 AM   
Sybaris


Posts: 55
Joined: 3/14/2015
Status: offline

quote:

ORIGINAL: KnightHawk75


If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.


That worked

(in reply to KnightHawk75)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Specific Unit Attacks Specific Unit 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

5.500