Jump to content
Sign in to follow this  
NEO -PZ-

Ai to change weapon

Recommended Posts

Hey,

How do you make an AI to change from for exampel AK74 to RPG launcher (if he already has the launcher on his back that is)?

Maybe it's enough with just:

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

If I do like the code sample only, will he change to RPG launcher, or will he fire AK74 bullets at the M113? And blah blah.

Thanks in advance  wink.gif

Neo

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Eunit1 dotarget Wm113;Eunit1 doFire Wm113<span id='postcolor'> just to be safe, should work. if he ignores the thing, take his AK away biggrin.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (LordZach @ May 24 2002,15:52)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Eunit1 dotarget Wm113;Eunit1 doFire Wm113<span id='postcolor'> just to be safe, should work.  if he ignores the thing, take his AK away biggrin.gif<span id='postcolor'>

Actually that is pretty smart.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Eunit1 removeweapon AK74; Eunit1 doTarget Wm113; Eunit1 doFire Wm113<span id='postcolor'>

And trigger for the Wm113 not alive thing,

in On Activation field:

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

Is there a noTarget command by the way?

Checking comref...

Can't find anything. Well, if he gets the Wm113 he won't have a target left.

Thanks  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  

×