Search found 665 matches

by Whicker
Mon Nov 03, 2025 4:06 am
Forum: Mods and Scenarios
Topic: Defend Luzon 2028
Replies: 28
Views: 3209

Re: Defend Luzon 2028

This scen is amazing! I haven't played this game in years but check in on it once in a while and stumbled on this thread, the setup looked interesting so I updated CMO and gave it a try.

Just starting the scen and making the choices and then placing them is neat. Well done!!!

One issue, there is a ...
by Whicker
Tue Apr 20, 2021 3:10 pm
Forum: Mods and Scenarios
Topic: Randomising Help
Replies: 4
Views: 247

RE: Randomising Help

<r> I think the problem is that the way random works - it needs a better seed, os.time is only seconds and that means that each second the seed is the same? something like that.<br/>
<br/>
One thing you can try is to call random a handful of times before you actually use it - like:<br/>
math ...
by Whicker
Mon Apr 19, 2021 12:17 am
Forum: Mods and Scenarios
Topic: Randomising Help
Replies: 4
Views: 247

RE: Randomising Help

<r> you have to seed the random function or else you keep getting the same random number. Add this before your function that has the random number in it:<br/>
<br/>
math.randomseed(os.time())<br/>
<br/>
that said I don't think I quite ever figured it all out:<br/>
<br/>
<URL url="https://www ...
by Whicker
Thu Jul 30, 2020 1:32 pm
Forum: Command: Modern Operations series
Topic: Assign land units to a base
Replies: 8
Views: 361

RE: Assign land units to a base

there is an ammo truck that if they are grouped with they can resupply from. I'd like to see ground units have the ability to have a home base, then they could go out on missions and come back.
by Whicker
Tue Apr 28, 2020 10:34 pm
Forum: Lua Legion
Topic: UnitRemainsInArea
Replies: 16
Views: 616

RE: UnitRemainsInArea

not sure I even know what an inverse square is! don't remember doing anything with it, sounds cool though.
by Whicker
Wed Apr 15, 2020 5:10 pm
Forum: Lua Legion
Topic: Scan An Area for Units
Replies: 16
Views: 948

RE: Scan An Area for Units

<t> the 3rd line doesn't look right to me, it would be the same as line 2 as far as i can tell.<br/>
<br/>
If line 3 is needed I think you need to have guid=goodguys.guid not just goodguys.guid.<br/>
<br/>
Best way to trouble shoot is to take stuff out and use print statements to see if it is ...
by Whicker
Mon Apr 13, 2020 9:13 pm
Forum: Lua Legion
Topic: Advise on modifying a Time Trigger
Replies: 12
Views: 1111

RE: Advise on modifying a Time Trigger

<t> i think (os.date('%m-%d-%Y %H:%M:%S %p', futuretime)) works fine - I think the example I had trouble with must have manually changed the month or the day and since the position of the day or month varies based on locale it didn't work? i don't think it was a time zone - i think it was a ...
by Whicker
Mon Apr 13, 2020 8:44 pm
Forum: Lua Legion
Topic: Advise on modifying a Time Trigger
Replies: 12
Views: 1111

RE: Advise on modifying a Time Trigger

<r> isn't there a problem with using the os.date conversion? the scen is set in a specific time zone, it is not likely the time zone of the player - is it giving you a UTC date/time? or the time in the timezone of the locale of the user? I can't wrap my head around that.<br/>
<br/>
at some point I ...
by Whicker
Sat Apr 11, 2020 7:53 pm
Forum: Lua Legion
Topic: GetMinefield question
Replies: 3
Views: 170

RE: GetMinefield question

you forgot 'a' after local? and lowercase l for local.
by Whicker
Fri Feb 14, 2020 3:09 pm
Forum: Lua Legion
Topic: Help with fuel script please
Replies: 15
Views: 547

RE: Help with fuel script please

just keep trying, you learn a little bit each day.. main thing is to be curious and persistent. Did you see the lua vids I made on youtube? there are several, tried to go over the basics. Search YT for `CMANO Lua`.
by Whicker
Fri Feb 14, 2020 12:55 am
Forum: Lua Legion
Topic: Help with fuel script please
Replies: 15
Views: 547

RE: Help with fuel script please

<r> <QUOTE><s>[quote]</s>function ScenEdit_SetUnit(side='Bengali Civilian')<e>[/quote]</e></QUOTE>
<br/>
why does it start with function? this is already a function. The first 5 lines you have look incorrect to me.<br/>
<br/>
You probably should be doing ScenEdit_GetUnit not SetUnit. You get the ...
by Whicker
Mon Jan 13, 2020 12:53 am
Forum: Mods and Scenarios
Topic: Dynamic Weather and Traffic
Replies: 7
Views: 340

RE: Dynamic Weather and Traffic

<t> that is a complicated script, from what I can tell it only has to do with traffic - no weather.<br/>
<br/>
If you can't get the traffic to appear, are there errors? have you tried just pasting that entire thing into the lua console?<br/>
<br/>
Weather is most likely in another action? what ...
by Whicker
Sat Jan 11, 2020 2:53 pm
Forum: Command: Modern Operations series
Topic: Ground Wafare. New ground combat system
Replies: 16
Views: 1066

RE: Ground Wafare. New ground combat system

<r> <URL url="https://commandops.github.io/">https://commandops.github.io/</URL><br/>
<br/>
scroll down about 4-5 items and there are a couple examples of checking a units ammo. Not sure if that is what you mean or not. I was pulling units back to the LZ if they were low on ammo - and checking ...
by Whicker
Thu Jan 09, 2020 1:35 pm
Forum: Tech Support
Topic: [FIXED] 1121.4- Air intercept mission- too many (all) planes take off to intercept a single target
Replies: 26
Views: 1050

RE: 1121.4- Air intercept mission- too many (all) planes take off to intercept a single target

<t> so for his example of enemy ac coming from widely different directions, assuming there are tons of available ac assigned to the mission you would expect both enemy ac to be intercepted? this is where I am saying it can only handle one contact/contacts in an area and nothing else will happen ...
by Whicker
Wed Jan 08, 2020 11:30 pm
Forum: Tech Support
Topic: [FIXED] 1121.4- Air intercept mission- too many (all) planes take off to intercept a single target
Replies: 26
Views: 1050

RE: 1121.4- Air intercept mission- too many (all) planes take off to intercept a single target

<t> I would expect 3 flights - all triggered by the first contact. From what I have been able to tell a single intercept mission can only handle one contact. It will not reset until flights assigned to that one initial contact land (or maybe RTB, not sure).<br/>
So it seemed to me that if you ...
by Whicker
Sun Dec 29, 2019 5:34 pm
Forum: Command: Modern Operations series
Topic: Nukes...
Replies: 23
Views: 461

RE: Nukes...

<t> I remember playing a scenario and was happily going about my business and then received a message that I was to nuke a certain area in Iran (playing as US) and it sort of pissed me off. I put all this work into achieving what I was supposed to, and then I was just going to nuke it instead. It ...
by Whicker
Fri Dec 27, 2019 2:08 pm
Forum: Tech Support
Topic: [Logged, Save Requested] Refueling issues
Replies: 6
Views: 196

RE: Refueling issues

maybe the tankers were set to not allow also? I did that once.
by Whicker
Thu Dec 26, 2019 3:46 am
Forum: Lua Legion
Topic: Simulate VBSS, capture of enemy airport & vehicles
Replies: 15
Views: 643

RE: Simulate VBSS

<t> I think you could do it as a condition, but you can just do it in the action itself.<br/>
<br/>
I think the helo will trigger the action right? the unit that triggers an action is called UnitX and can be set to a variable:<br/>
<br/>
local u = ScenEdit_UnitX ()<br/>
<br/>
then you can test ...
by Whicker
Tue Dec 24, 2019 9:17 pm
Forum: Lua Legion
Topic: Simulate VBSS, capture of enemy airport & vehicles
Replies: 15
Views: 643

RE: Simulate VBSS

<t> you are missing the curly brackets - and the air base one the name is incorrect:<br/>
<br/>
ScenEdit_SetUnitSide({oldside='Red', Name='Building (Airport Terminal)', newside='Blue'})<br/>
<br/>
you can run that in the lua console, move time forward and it should change. Then you can update ...
by Whicker
Tue Dec 24, 2019 9:05 pm
Forum: Lua Legion
Topic: How to test if unit has magazine?
Replies: 6
Views: 243

RE: How to test if unit has magazine?

have you figured out which unit causes this? try printing the unit name at the same times as the # of magazines.
I just tried your first bit of code on a couple of Chains of War scens and there was no error.

Go to advanced search