First, thanks so much to the community for helping me with all these questions, hope to have a great scenario up for you guys soon.
So I am trying to create an event where if a player destorys a certian target, like a textile factory- between 9-5, it triggers another event called civilians killed which instead penalizes the player
I thought I could set this up via conditions but either I dont understand conditions correctly or I am using them wrong. any help is very appreciated. here is my code so far
Code: Select all
local now = ScenCurrentTime()
if now > now += 3600*9 and now < now += 3600*18 then
if SecnEdit_GetUnit({side='BSA', side='BSA', name='Ammo Factory' or side='BSA', name='Textile Factory' or side='BSA', name='Power Station'
or side='BSA', name='Military Factory' or side='BSA', name='Diesel Tank' or side='BSA', name='Processing Plant' or side='BSA', name='Serb Police Station Alpha'
or name='Serb Police Station Bravo' or name='Serb Police Station Charlie' or name='Serb Police Station Charlie'
or side='BSA', name='Serb Police Station Delta' or side='BSA', name='Serb Police Station Echo'}) == nil then
ScenEdit_ExecuteEventAction('Civilians Killed')
else
ScenEdit_ExecuteEventAction('BSA Land Structure Destroyed')
end
end

