SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Classic Subsims (https://www.subsim.com/radioroom/forumdisplay.php?f=173)
-   -   UDF Question (https://www.subsim.com/radioroom/showthread.php?t=93558)

Darkfold 05-23-06 10:10 PM

UDF Question
 
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:


All times are GMT -5. The time now is 01:30 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.