Jump to content
Sign in to follow this  
buster0083

Script to make AI fire on smoke

Recommended Posts

I've made a simple mission for a player to fly an AH-9 in support of troops defending Camp Maxwell against AI. Scripted in a custom key to drop smoke grenades so I could mark enemy positions in the trees for me to fire at on the next run.

Is there a way to have friendly AI open up on those smoke marks as well?

Cheers

Share this post


Link to post
Share on other sites

Place some "invisible object soldier [Red}" objects (you find these under Objects Training in the editor). SetPos these objects to your marker positions, and then use doTarget and Fire commands to get your units to fire on the targets.

This definitely works. Your units will use all their ammo on them though, so you may have to script them to target objnull or some other way to stop firing at the target (or setdamage 1 on the target to kill the invisible target).

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  

×