ScenEdit_AddZone and ScenEdit_RemoveZone fails

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Bandura1
Posts: 32
Joined: Sun Dec 11, 2016 5:46 am

ScenEdit_AddZone and ScenEdit_RemoveZone fails

Post by Bandura1 »

Example:

ScenEdit_AddZone('A', 1, {description='Zone1', isactive=true, area={"RP-1", "RP-2", "RP-3", "RP-4"}, affects={'Aircraft','Ship'}, markas='Hostile'})

Not works, why?

Thanks in advance
Bandura1
Posts: 32
Joined: Sun Dec 11, 2016 5:46 am

RE: ScenEdit_AddZone and ScenEdit_RemoveZone fails

Post by Bandura1 »

Ok, remove solved

Example:

ScenEdit_RemoveZone ('A', 0, {Description='Zone 1'})

but AddZone not yet.
boogabooga
Posts: 985
Joined: Wed Jul 18, 2018 12:05 am

RE: ScenEdit_AddZone and ScenEdit_RemoveZone fails

Post by boogabooga »

Could you provide a scenario where you are trying to apply this? are you sure the the side, the zone, etc. all exist?
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: ScenEdit_AddZone and ScenEdit_RemoveZone fails

Post by KnightHawk75 »

Define not work? Is the zone not added or are you getting duplicate RP's when it is added. Unless it's something specific to exclusions (which I doubt from the example) see ...
fb.asp?m=4962895
Bandura1
Posts: 32
Joined: Sun Dec 11, 2016 5:46 am

RE: ScenEdit_AddZone and ScenEdit_RemoveZone fails

Post by Bandura1 »

¡Solved!

Thanks [;)]
Post Reply

Return to “Lua Legion”