Forum Jump :

Author Message


Posts: 15
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-01-31 18:54        
     
I have a mission were I want an AH6J to blow up a building ive placed on the map using rockets. I can get it to target the building using chop1 commandTarget comshack but im unable to get it to engage. Ive tried using commandFire but no luck. Any ideas? Thanks.


Author Message

W0lle  

call me evil


Posts: 1960
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 103
In-game name:

 
#2 Posted at 2010-01-31 19:10        
     
The empty building itself might not be accepted as valid target by the chopper so you need to work with a trick:

Place an enemy unit somewhere at the building where the player/camera doesn't show it. Also give the enemy unit and the helicopter a name, like "mytarget" and "mychopper".

When the helicopter is near the building make sure he knows about the enemy unit, target at it and engaging it. Best you are using a trigger for this. In the triggers onActivation line type:
mychopper reveal mytarget; mychopper doTarget mytarget; mychopper doFire mytarget

If you want to make sure the enemy unit is not running away, add this to the units initialization line:
this disableAI "MOVE"


Advertisement


Author Message


Posts: 15
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2010-01-31 20:42        
     
Thanks for the reply W0lle.

I hid the unit inside the building but the chopper wont engage unless it can see the unit out in the open.

Also strangely i can only get it to fire if the chopper is in a group.

I guess ill make the objective a person rather than a building. Thanks again for your help.

This post was edited by bambiturbo (2010-01-31 22:02, ago)


Author Message

W0lle  

call me evil


Posts: 1960
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 103
In-game name:

 
#4 Posted at 2010-01-31 22:43        
     
Problem is that the AI is pretty stupid sometimes but yes, of course they must see the target before they fire at him. So you need to place the unit in a position where the helicopter has visual contact.

If you want to have the building destroyed, you can give the object a name and use the setDamage command to destroy it once the helicopter fired at it (or killed the dummy soldier).
To do this you place a trigger with the following parameters:
Condition: !alive mytarget
onActivation: mybuilding setDamage 1 (mybuilding is the name of the building)

The other trigger parameters don't matter.


Author Message


Posts: 429
Rank:


Level: Member

Country: us
Location:
Occupation: Retired
Age: 59
In-game name:

 
#5 Posted at 2010-02-01 20:56        
     
ACE has invisible target units just to help mission makers with this problem.

I am fear.

Author Message


Posts: 15
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2010-03-01 00:21        
     
Sorry for the long delay Evil Echo, I didnt check back for a while,

Do I need to use ACE mod with my mission for this or is it possible just to get hold of the invisivle targets?

Thanks for reply by the way.


Author Message

W0lle  

call me evil


Posts: 1960
Rank:


Country: de
Location:
Occupation: CWR² Project Lead
Age: 103
In-game name:

 
#7 Posted at 2010-03-01 16:28        
     
Yes if you use the invisible targets from the ACE Mod, then you and everyone else needs the Mod to play your mission.


Author Message


Posts: 208
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: U.S. Army E-3 PFC MOS:92G
Age: 25
In-game name: BOB

 
#8 Posted at 2010-03-02 21:09        
     
try using somthing to tell if hes looking at it then add disableai "AUTOAIM" then do dude fire "ammtype" then enableai "Autotarget" idk if this will work i dont have much time but its worth a try.

Played this game as a child, best times of my life.