Jump to content
Sign in to follow this  
Stewy

Medic in the init line?

Recommended Posts

Hi guys,

Sorry for the dumb question - I was just wondering, is it possible to make an AI character medic (ie, power to heal) with an init line?

I know it can be done in the cfg, but just wanted to ask wink_o.gif

Cheers guys

Stew

Share this post


Link to post
Share on other sites

I think that the cpp of the unit there should be a line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">attendant = true;

With scripts you can run this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">soldierOne action ["heal", medicOne];

sleep 3;

soldierOne setdamage 0;

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  

×