Veteran66 Posted June 4, 2017 Posted June 4, 2017 I make a Name list in my script but only the first Name "Unit1" will set the Flag100 what is wrong with my Unit1, Unit2 and Unit3 List? local _initiator = event.initiator local _initname = _initiator:getName() if _initname == "Unit1" or initname == "Unit2" or initname == "Unit3" then trigger.action.setUserFlag(100, true) German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Chump Posted June 4, 2017 Posted June 4, 2017 if _initname == "Unit1" or initname == "Unit2" or initname == "Unit3" thenshould be if _initname == "Unit1" or _initname == "Unit2" or _initname == "Unit3" thenYou forgot the underscores for the Unit2 and Unit3 comparisons.
Veteran66 Posted June 4, 2017 Author Posted June 4, 2017 thx, work now :) German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Recommended Posts