Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Special Action to Create a target anywhere (on land)

 
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 >> Special Action to Create a target anywhere (on land) Page: [1]
Login
Message << Older Topic   Newer Topic >>
Special Action to Create a target anywhere (on land) - 9/29/2019 8:51:48 PM   
Whicker

 

Posts: 635
Joined: 6/20/2018
Status: offline
How do you bomb a specific spot where you know there is something, but you have not detected it?

Put a ref point there, highlight it, and then run a special action to convert any highlighted ref point into a target unit.

Works pretty well, other than it takes about a minute of game time to show up - and I wish there were other targets out there that were a little harder to destroy - thus there would be more splatter to hopefully kill the hidden unit.

Attached scen has the special action and a few units to fight against each other, there are 2 hidden artillery units that are having a field day with the ships.

code - just requires a side called 'Targets' set to blind and what not, target dbid differs between CWDB and DB3000, note the comment for that:

quote:


local side=ScenEdit_PlayerSide()
local targetSide = 'Targets'
local sideCheck =ScenEdit_GetSideOptions({side=targetSide})
print(sideCheck)
if sideCheck == nil then
ScenEdit_MsgBox ('Target Side does not exist, please create a side named Targets', 1)
return
end
local targetDBID = 1633 --cwdb is 1633 db3000 is 2434
local s = VP_GetSide({side=side})
local noRefPoints = true
local w_targetCounter = ScenEdit_GetKeyValue('w_targetCounter')
if w_targetCounter == '' then w_targetCounter =1
else
counter=tonumber(w_targetCounter)
end

for k,v in ipairs(s.rps) do
if v.highlighted == true then
ScenEdit_AddUnit({side=targetSide,name='Target-'..w_targetCounter,type='Facility',lat=v.latitude, lon=v.longitude,dbid=targetDBID,autodetectable='true'})
ScenEdit_DeleteReferencePoint({side=side,guid=v.guid})
--_SetReferencePoint({side=side,guid=v.guid,newname='target'})
print(v.highlighted)
w_targetCounter=w_targetCounter +1
noRefPoints=false
end --end looping thru ref points
end
if noRefPoints then
ScenEdit_MsgBox ('No Ref Points selected', 1)
end --if norefpoints


Attachment (1)
Post #: 1
RE: Special Action to Create a target anywhere (on land) - 10/5/2019 5:18:08 AM   
apache85

 

Posts: 1469
Joined: 12/18/2014
From: Melbourne, Australia
Status: offline
Marker (Bombing Target [Bullseye]) -- Generic (Generic), DBID #3166 in the DB3K has 100,000DP which should stand up to a fair beating.

_____________________________


(in reply to Whicker)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Special Action to Create a target anywhere (on land) 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.109