Veteran66 Posted October 19, 2019 Posted October 19, 2019 (edited) Hi all I need a script like: AI unit drop bomb in zone and Player drop bomb in zone ist this possible with mist scripts? the Editor Trigger "Bomb in Zone", trigger only the Bombs from the Player :( Edited October 19, 2019 by Veteran66 German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Veteran66 Posted October 20, 2019 Author Posted October 20, 2019 find it: https://forums.eagle.ru/showthread.php?t=183816&highlight=EVENTS.Shot local rifleHandler = {} function rifleHandler:onEvent(event) if event.id == world.event.S_EVENT_SHOT then local _initiator = event.initiator local _initname = _initiator:getName() if _initname == "Unit1" then trigger.action.setUserFlag(1, true) end end end world.addEventHandler(rifleHandler) German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Recommended Posts