Log in

View Full Version : UDF Question


Darkfold
05-23-06, 10:10 PM
Functionally, is this:

[SENSOR2]
Type = RADAR
#if between(19420201,date,19420831)
System = RadarUS_SC1
#endif
#if between(19420901,date,19460101)
System = RadarUS_SC2
#endif

the same as this:

#if between(19420201,date,19420831)
[SENSOR2]
Type = RADAR
System = RadarUS_SC1
#endif

#if between(19420901,date,19460101)
[SENSOR2]
Type = RADAR
System = RadarUS_SC2
#endif

?

Hitman
05-25-06, 03:07 PM
Yes. Since the lack of, say, a sensor 2 before a sensor 3, will be ignored by the game, the effect is the same (It will jump to the next number in order) :)

Darkfold
05-27-06, 10:34 PM
Good. I see arranging Sensors and Weapons with two or three consecutive date ranges - i.e., one type of RADAR replacing another - using the first method as being better because it takes up less room (smaller file), and is easier to understand because it's easier to deal mentally with one Sensor or Weapon at a time and easier to see the date ranges.

I'm going through all the UDFs and making them all consistent. Anal-retentive? Who, me? Nope, just an old technical writer who likes everything to look the same.

All right, maybe I'm just a little bit anal-retentive. :yep: