schadler17 36 Posted September 16, 2015 I'm looking to make a trigger that when an empty helicopter is present, it sets the vehicle damage to 0 while it is in the trigger area.(Basically vehicle invulnerability inside the trigger zone) Anyone have ideas? Share this post Link to post Share on other sites
Schatten 290 Posted September 16, 2015 Try this server side script: _trigger = createTrigger ["EmptyDetector", _position]; _trigger setTriggerActivation ["ANY", "PRESENT", true]; _trigger setTriggerStatements [ "({(_x isKindOf 'Helicopter_F') and {(count (crew _x)) == 0}} count thisList) > 0", "{if ((_x isKindOf 'Helicopter_F') and {(count (crew _x)) == 0}) then {_x setDamage 0}} forEach thisList", "" ]; Share this post Link to post Share on other sites
schadler17 36 Posted September 16, 2015 For _position should I define that above? On iPad right now away from PC and can't test right now. Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted September 16, 2015 For _position should I define that above? Replace _position by any desired position on the map, where the trigger should be placed. Share this post Link to post Share on other sites
Schatten 290 Posted September 16, 2015 For _position should I define that above? Yes. Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted September 16, 2015 Actually, nevermind. Had to read the question twice to get it sorted. Share this post Link to post Share on other sites
schadler17 36 Posted September 16, 2015 Can I create the trigger in the editor and add the initialization lines too it? Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted September 16, 2015 Assuming, by "initialization lines" you mean the trigger statements, then yes, of course. Share this post Link to post Share on other sites