Jump to content
Sign in to follow this  
gossamer5150

Firing without target

Recommended Posts

Is there any way to get a tank to sit on the outside of town and fire at the town without a target? Also can you do this with m113 machine gun. Remember when answering I am not a scripter try to make your answer as clear as possible. Thank you in advance for your help.

Share this post


Link to post
Share on other sites

use a palette for example. Name it p1 and set it in the right height andposition with setpos,getpos.

In the init line of the tank put:

this knowsabout p1

or use the reveal command if you like that better.

Now let the tank target it with a little script:

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

#loop

~15

p1 setdammage 0;

a1 dowatch p1;

~5

a1 fire ["FDF_T55MGun","FDF_T55MAP"];

p1 setdammage 0;

~25

goto "loop"

You can use various targets and make the tank switch between them with this little script. Just extend the script to your needs.

Share this post


Link to post
Share on other sites

Another option would be to find Lesters Invisible Targets addon 1.30. Then you just have to place a static object on the map and the AI will automaticly shoot at it when it's in range.

Don't have any URL handy but google for it, if you can't find it PM me and we will fix it some way or another.

/Christer (a.k.a KeyCat)

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  

×