Jump to content
Sign in to follow this  
Kunsa

Fire at Target

Recommended Posts

I am looking for a way to make an AT unit be able to fire his primary weapon and be able to target with secondary weapon, but I want him to not fire his secondary unless instructed to do so by me. Im not sure if its possible to distinguish targets assigned by me or self assigned targets?! There must be a simple solution. I was just going to run a background script to switch his secondary back to primary unless a certain condition is met. Also AA units seem willing to use every single rocket available as quickly as possible as long as his target doesnt explode mid air. even if its coming down they always fire another at it anyway :butbut:

I think im just looking for scripting ideas that I can play with to solve this

Share this post


Link to post
Share on other sites

paste this to the Init field of your AA unit (named as "AAdude"):

this disableAI "AUTOTARGET";
this selectWeapon "_ClassnameOfYourLauncher_";

This prevent the unit to search indipendently for targets.

Now you need a trigger that triggers the Chopper (named "bird") when entering the area you would like to get him shot at.

In the On Act of the trigger paste:

AAdude doTarget bird;
AAdude doFire bird;

now you can copy&past the trigger to a new area and the AAdude will shot again at bird.

best regards

Lappihuan

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  

×