Omen101 0 Posted July 4, 2007 I was wondering if there was any way so that if a trigger is activated, a unit's health can be set to 0 so that it looks as if he was to be shot by a sniper for example. It's very hard in cut scenes to make a sniper hit the right target at the right time, i wanted to see if i dont even need a sniper there. thx Share this post Link to post Share on other sites
maddogx 13 Posted July 4, 2007 I was wondering if there was any way so that if a trigger is activated, a unit's health can be set to 0 so that it looks as if he was to be shot by a sniper for example. It's very hard in cut scenes to make a sniper hit the right target at the right time, i wanted to see if i dont even need a sniper there. thx Use the setDamage command for that. There is a complete list of scripting commands here. Share this post Link to post Share on other sites
icebreakr 3159 Posted July 4, 2007 We use that trick in a couple of missions. Set it to trigger for example. Name the "victim", and type in the trigger field: nameoftheunit setdamage 0; Share this post Link to post Share on other sites
NeMeSiS 11 Posted July 4, 2007 We use that trick in a couple of missions. Set it to trigger for example. Name the "victim", and type in the trigger field: nameoftheunit setdamage 0; You mean 1? 0 would 'heal' him if he was wounded Share this post Link to post Share on other sites