Jump to content
prototype1479

AI doesn't shoot over sandbags/AI Cover script

Recommended Posts

I made a script where AI manually finds cover and takes cover but, the problem is AI doesn't shoot over sandbags. It works with some objects like barrels or some random broken pieces but not with sandbags. I heard that if I use "this setdamage 0" on the init field of the sandbag it will work but it doesn't. Is there anyway to fix it?

 

Here's the script if you wanna see it yourself : http://www.mediafire.com/file/1d6uqcannx45w6e/Cover+script.zip

 

I might have made a scripting mistake but I don't think so. I mean it can shoot over barrels...
 

Share this post


Link to post
Share on other sites

The problem is the height of the sandbags.

The simplest thing is maybe just use setpos with a small negative Z number.

 

Also there are several cover scripts you can use that lower the bags and sets units position with a switchmove animation.

https://www.mediafire.com/folder/mshz96iybtm2zhl,m4oqhony6ag150t,yshtdfc0lq1m8zc,i1m9jbqdf92q9do,q75cb3pim7inl48/shared

 

Also I think I saw an addon that made sandbags a bit smaller by the Russian groups.

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

×