Page 1 of 1
ai view range in the odf? [Solved]
Posted: Thu Oct 21, 2010 4:04 am
by TGB
im in the process of making ultra large maps and would like to know if there is an alternate way to the lua commands to increase / decrease the view range of ai units, specifically in their respective odf files because certain units should be able to see over longer distances.
Re: ai view range in the odf?
Posted: Thu Oct 21, 2010 4:13 am
by CT-26-6958_Hevy
Maybe these two lines?
Code: Select all
ScanningRange = 100.0
TransmitRange = 300.0
But I'm not sure
Re: ai view range in the odf?
Posted: Thu Oct 21, 2010 5:22 am
by DarthD.U.C.K.
try these lines
Code: Select all
MinRange = "8"
OptimalRange = "64"
MaxRange = "128""
Re: ai view range in the odf?
Posted: Thu Oct 21, 2010 10:29 am
by Eggman
To expand a bit on what was posted:
DarthD.U.C.K. wrote:try these lines
Code: Select all
MinRange = "8"
OptimalRange = "64"
MaxRange = "128""
These are what you want. The value that you're probably most concerned with is OptimalRange - this value controls how close a unit must be before an AI unit tries to attack it. Once the AI unit has "seen" the unit it is attacking, MinRange and MaxRange come into effect. MinRange controls how close a unit can get before the AI will stop attacking it with its current weapon and switch to a different weapon (for example, a sniper will switch to its pistol when the MinRange of the sniper rifle is reached). MaxRange controls how far away a unit can get before the AI stops attacking it with its current weapon (either switching to a different weapon, say from a pistol to a sniper rifle, or disengaging entirely).
CT-26-6958_Hevy wrote:Maybe these two lines?
Code: Select all
ScanningRange = 100.0
TransmitRange = 300.0
But I'm not sure
These show up in the .odfs for certain units (check out the .odfs for officer units, specifically), and they are related to the appearance of enemies on the radar screen (the values being the radius from the unit in question). These values don't have anything to do with how far the AI can "see" in terms of attacking, so they can be ignored unless you want to play around with the appearance of units on the radar.
Re: ai view range in the odf?
Posted: Thu Oct 21, 2010 12:26 pm
by THEWULFMAN
These are what you want. The value that you're probably most concerned with is OptimalRange - this value controls how close a unit must be before an AI unit tries to attack it. Once the AI unit has "seen" the unit it is attacking, MinRange and MaxRange come into effect. MinRange controls how close a unit can get before the AI will stop attacking it with its current weapon and switch to a different weapon (for example, a sniper will switch to its pistol when the MinRange of the sniper rifle is reached). MaxRange controls how far away a unit can get before the AI stops attacking it with its current weapon (either switching to a different weapon, say from a pistol to a sniper rifle, or disengaging entirely).
CT-26-6958_Hevy wrote:Maybe these two lines?
Code: Select all
ScanningRange = 100.0
TransmitRange = 300.0
But I'm not sure
These show up in the .odfs for certain units (check out the .odfs for officer units, specifically), and they are related to the appearance of enemies on the radar screen (the values being the radius from the unit in question). These values don't have anything to do with how far the AI can "see" in terms of attacking, so they can be ignored unless you want to play around with the appearance of units on the radar.[/hide][/quote]
Thanks eggman, i wondered what the transmit/scan thing was, good to know
Re: ai view range in the odf?
Posted: Sat Oct 23, 2010 3:56 am
by TGB
thanks i always wondered what optimalrange did
