the "NOT" modifier

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
vettim89
Posts: 3723
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

the "NOT" modifier

Post by vettim89 »

is there anywhere with documentation of how to use the "NOT" modifier in triggers?

For an example, if a trigger is "Unit Enters Area" does the "NOT" modifier turn it into "Unit Leaves Area"?
"We have met the enemy and they are ours" - Commodore O.H. Perry
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: the "NOT" modifier

Post by michaelm75au »

'NOT' in this case does means NOT in the area.

However, there is a flag that can be set by Lua for a unit leaving the area.[Hasn't been added to the form in Command]

SE_SetTrigger({...,ExitArea=true,...}

Has been awhile since I created this, but it did work in the past.
Michael
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: the "NOT" modifier

Post by michaelm75au »

Ahh.. for the Exit to work, it needs to register that they 'entered the area' so needs a active 'Unit enters area' Event.
Michael
Post Reply

Return to “Lua Legion”