Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

GetMinefield question

 
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 >> GetMinefield question Page: [1]
Login
Message << Older Topic   Newer Topic >>
GetMinefield question - 4/11/2020 7:07:53 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Testing out the 'ScenEdit_GetMinefield' function

Either I'm not doing it right or it may not be working properly - probably the former.

Tried the function from both sides, obviously the side owner should be the side showing the mines but in both cases I'm getting an 'nil' for a return.

Can you point me in the right direction please?

Tx




Attachment (1)

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
Post #: 1
RE: GetMinefield question - 4/11/2020 10:53:06 PM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
you forgot 'a' after local? and lowercase l for local.

(in reply to Gunner98)
Post #: 2
RE: GetMinefield question - 4/12/2020 4:14:06 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Once again - Doh!

That worked.

quote:

{ [1] = { type = 'Weapon_2420', guid = 'c25c74ed-e54a-4346-835b-831641171086', delay = 0, depth = -109.68620300293, longitude = 43.3588752746582, latitude = 12.6022644042969 }, [2] = { type = 'Weapon_2420', guid = '43390cde-4e75-4165-9466-01c53b45b6d8', delay = 0, depth = -25.8526020050049, longitude = 43.2616386413574, latitude = 12.6186656951904 }, [3] = { type = 'Weapon_2420', guid ...


Thanks

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to Whicker)
Post #: 3
RE: GetMinefield question - 4/12/2020 6:22:23 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
OK - taking me a while to get back into this but this works - it's not much but is a minor victory


local a = ScenEdit_GetMinefield({side='Houthi Rebels', area={'RP-727','RP-728', 'RP-729', 'RP-730'} } )
local b = 0

if a ~= b then
ScenEdit_SpecialMessage('USA','They have mines')
end

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to Whicker)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> GetMinefield question 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.734