whisperFFW06 0 Posted February 10, 2003 Hi, I was just building the config.cpp for a M6 Linebacker Air Defense Vehicle (from M2A2 Bradley, seems that this vehicle already exists somewhere, but I'm to far in the cpp fr stopping, now ). It has a 4 Stinger AA missile launcher and the usual 25mm cannon, the later being used against air or ground targets. So that Stinger should be preferred over canon against air targets, I tweaked on the min/mid/maxRangeProbab parameter with fairly good results (missile engagement down to 1500m, after what the AI switches to canon), but a problem appears against ground targets, which are engaged using Stinger... Â How can I prevent an airLock type weapon from being used against ground targets, without messing with rangProbab parameter? I tried to disable ground engagement with irScanGround=false, but no go . Whis' Share this post Link to post Share on other sites
PicVert 0 Posted February 12, 2003 I have a solution for you but your unit will never engage soldiers.. put that line in your class yourvehicle in CfgVehicles section : </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">threat[]={0.0,0.3,0.8};<span id='postcolor'> it's how your unit engage ennemis (Soldier,Tank,Air) Hope it's what you need. Share this post Link to post Share on other sites
whisperFFW06 0 Posted February 12, 2003 Thanks, I'll give it a try... I though this command was to indicate the threat posed by the vehicle to other vehicles, but it seems it is the opposite, it indicates how the vehicle should react too diff types of threat. Why should VSoft be to 0? As missile won't lock on soldiers, it should only fire with canon, or am I wrong? Whis' Share this post Link to post Share on other sites
PicVert 0 Posted February 15, 2003 I think you're right, but it's in CfgVehicles and not in CfgWeapons or Ammo and give to all weapons the same threat. Â Share this post Link to post Share on other sites