Jump to content
Sign in to follow this  
Omen101

IS there a way to set damage on units

Recommended Posts

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
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

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
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 wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×