rexehuk 16 Posted December 28, 2009 Hey guys, Pretty simple request, I want to set off a bomb trigger if a hostage is killed within the building. I did try civilian counttype thislist < 18 but it just keeps exploding straight away! Any ideas? Rob Share this post Link to post Share on other sites
goliath86 11 Posted December 28, 2009 hi, if I understand you want to touch off a bomb if one hostage is killed. put this in the initline of the hostage: null0 = this execVM "die.sqf" save in your mission folder a .sqf file and name it "die.sqf" and write in it: waitUntil{!alive _this}; followed by the rest of the effect you want to create after his/her death. :) Share this post Link to post Share on other sites
Andy455 11 Posted December 28, 2009 Or maybe a different way to activate the script would be to use an event handler if you have multiple hostages, this could save some performance as it isnt always waiting around (at least thats how I interpreted waitUntil). _onDeath = this addEventHandler ["killed", {_this execVM "die.sqf"}] I think just whacking that into the init field should do it. Share this post Link to post Share on other sites
goliath86 11 Posted December 28, 2009 Or maybe a different way to activate the script would be to use an event handler if you have multiple hostages, this could save some performance as it isnt always waiting around (at least thats how I interpreted waitUntil). _onDeath = this addEventHandler ["killed", {_this execVM "die.sqf"}] I think just whacking that into the init field should do it. Yeah, good idea Andy! It can save some performance in case of many hostages ;) Share this post Link to post Share on other sites