Page 1 of 1
Activate/Inactivate Events
Posted: Thu May 17, 2018 6:54 pm
by kevinkins
I looked through the lua documentation, but nothing jumps out at me. Is there lua code to turn events on and off based on another trigger e.g. an a/c entering a certain area or a random number generated.
Thanks
Kevin
RE: Activate/Inactivate Events
Posted: Thu May 17, 2018 7:15 pm
by Cik
ye, use setevent with IsActive (boolean so 1/0)
ScenEdit_SetEvent('testname', {Isactive=1})
tested it to be sure, works fine.
there's also setaction settrigger and setcondition as well which are pretty similar.
RE: Activate/Inactivate Events
Posted: Thu May 17, 2018 7:17 pm
by kevinkins
Thanks .. will try now.
Kevin
RE: Activate/Inactivate Events
Posted: Thu May 17, 2018 7:23 pm
by kevinkins
Perfect, that's the one. Thanks again.
Kevin