Jump to content
Sign in to follow this  
Lupina

Heal and  executed other actions

Recommended Posts

1 - How to make a civilian can heal, such that a medic.

2 - How to heal soldier (script commanad) [setDammage does't work]

3 - How to order soldier to healed someone , or executed other actions (script commanad)

eg: on/off engine, heal, put weapon smile.gif

Share this post


Link to post
Share on other sites

2. setDammage should work.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitName setDammage 0<span id='postcolor'>

0 is how much damage. You can use anything from 0 to 1.

Share this post


Link to post
Share on other sites

As iNeo said , setdammage work

A funny example by the way

Create a West soldier, yourself

Create an East AI soldier, name it ZOMBI

Create a trigger (the EAST unit MUST be in the array of this trigger), set it Repeatedly , at the line Activation select East and check "not present"

And at the line On Activation , put this

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">ZOMBI setdammage 0<span id='postcolor'>

Now preview this , and everytime you kill the russian soldier , he will wake up again and again and....

Argh a real zombi with gun : run , run !!! wink.gif

Share this post


Link to post
Share on other sites

thanks, however SetDammage works.

I dont know why earlier it did't.

and I found command to heal which looks so :

 

    wounded_man action ["HEAL",medic_man]

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

×