Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[ADDED] Enemy contacts OOB?

 
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 >> [ADDED] Enemy contacts OOB? Page: [1]
Login
Message << Older Topic   Newer Topic >>
[ADDED] Enemy contacts OOB? - 7/13/2019 4:32:04 AM   
Whicker

 

Posts: 644
Joined: 6/20/2018
Status: offline
When playing a larger scen it seems like we should be able to access what all the contacts are much the same as we can access our own OOB - ie lists of units that are clickable. So if we already have a contact of some super duper SAM site it would be nice to be able to pick that out of a list and click on it to see where it is.

I've played around with doing this in lua but I can only make the list - I can't make it clickable. I suppose it could be a list and then a separate special action to search for a contact - maybe workable but seems clunky.

so far what I have in lua which just shows AC contacts and SAMs:

quote:


local vp = VP_GetSide({name = "USN"})
local cp = vp.contacts --List Of contacts
local ac={}
local sams = {}
for k,v in ipairs(cp) do
local u = ScenEdit_GetContact({side='USN', guid=cp[k].guid })
if u.type == 'Air' then
--print(v)
table.insert(ac,v)
end --if AC
if u.type == 'Fixed Facility' then
if string.match(u.name,'SAM') then
--print(u.name)
table.insert(sams,v)
else -- not sam, do somethign with them at bottom
end --if fixed facility
end --if AC
end
print('------ Air Contacts ---------------------------------------')
for k,v in ipairs(ac) do
print(v.name)
end -- ac table

print('------ SAM Contacts ---------------------------------------')
for k,v in ipairs(sams) do
print(v.name)
end -- ac table


Sample output:

------ Air Contacts ---------------------------------------
BOGEY #392
BOGEY #393
Multirole #395
Multirole #394
------ SAM Contacts ---------------------------------------
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Grp (SA-5c Gammon, 2x Bn)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Grp (SA-5c Gammon, 3x Bn)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Grp (SA-5c Gammon, 2x Bn)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-3b Goa)
SAM Bn (SA-2f Guideline)
SAM Bn (SA-2f Guideline)
SAM Grp (SA-5c Gammon, 2x Bn)

< Message edited by Dimitris -- 7/16/2019 11:49:39 AM >
Post #: 1
RE: Enemy contacts OOB? - 7/13/2019 5:38:26 AM   
RoryAndersonWS


Posts: 1778
Joined: 6/16/2009
Status: online
Neat idea, thanks logged.

_____________________________


Command Developer, Warfare Sims.
Command Videos: http://youtube.com/baloogan
http://baloogancampaign.com

(in reply to Whicker)
Post #: 2
RE: Enemy contacts OOB? - 7/16/2019 11:49:25 AM   
Dimitris


Posts: 11681
Joined: 7/31/2005
Status: offline
Added in a future release.

_____________________________


(in reply to RoryAndersonWS)
Post #: 3
RE: Enemy contacts OOB? - 7/17/2019 1:33:58 AM   
tjhkkr


Posts: 2400
Joined: 6/3/2010
Status: offline
Great idea.

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to Dimitris)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> [ADDED] Enemy contacts OOB? 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.121