WurschtBanane 11 Posted September 10, 2016 I want a create a safezone similar to the one in KOTH. No i tried to create a trigger and put (vehicle player) allowDamage false; into "on activation" and (vehicle player) allowDamage true; into "on deactivation". The problem is that the mission is a multiplayer one and when i do this it prevents ALL of the players and manned vehicles on the server from taking damage... Share this post Link to post Share on other sites
davidoss 549 Posted September 10, 2016 I would use Heeeere's johnny!s Trigger List Changed This fire the trigger for each units in/out Great script Share this post Link to post Share on other sites
WurschtBanane 11 Posted September 10, 2016 I would use Heeeere's johnny!s Trigger List Changed This fire the trigger for each units in/out Great script This script is quite complicated to use. Is there any way i can just make it prevent vehicles and players inside not take damage without a script? Share this post Link to post Share on other sites
davidoss 549 Posted September 10, 2016 It is really that complicated? [ mytrigger, { sleep 2; if !(vehicle _x == _x) then { (vehicle _x) allowDamage false; _x allowDamage false; } else { _x allowDamage false; }; } , { sleep 2; if !(vehicle _x == _x) then { (vehicle _x) allowDamage true; _x allowDamage true; } else { _x allowDamage true; }; }, false ] execVM "fn_triggerListChanged.sqf"; 1 Share this post Link to post Share on other sites
WurschtBanane 11 Posted September 10, 2016 GOTCHA! {(vehicle player) allowDamage false} Foreach thislist; on activation {(vehicle player) allowDamage true} forEach [allUnits, vehicles]; on deactivation Share this post Link to post Share on other sites