Forum Jump :

Author Message


Posts: 46
Rank:


Level: Member

Country: de
Location:
Occupation:
Age: 21
In-game name: Joey

 
#1 Posted at 2013-06-26 13:48        
     
Hello,

I'm doing a jetfight map. My problem is, that I don't want the Ai units to disembark when their chopper gets hit, because it's annoying to hit them if they're on the ground with a jet. So i first googled solutions how to prevent them from disembarking, but it seems like it's not possible to do that. So I thought, it could help if I just kill them when they disembark.

Any ideas how to do it?

Some info:
The units who should be killed when they get out are OPFOR units. They're sitting in M24-P's, in M-24V's, and in a SU-25.

Thanks for your help.


Author Message


Posts: 1484
Rank:


Level: Member

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

 
#2 Posted at 2013-06-26 15:21        
     
This command may not be implemented in Arma2 but worth a try as it does keep the crew in vehicles.
this allowCrewInImmobile true;

OR

place this in vehicle init and it will kill anyone who gets out.
this addeventhandler ["getout",{(_this select 2) setdamage 1}]






Tags: Ai, Arma2, Editor, Jet