Home   Help Search Login Register  

Author Topic: Early warning radar  (Read 572 times)

0 Members and 2 Guests are viewing this topic.

mt1202

  • Guest
Early warning radar
« on: 16 Dec 2002, 15:39:21 »
hi all.
I Was wondering, could one make a script that detected ground / air movements to simulate a real working Radar Station? If so how?

Example : 1 radar station on a hill top, detecting all ground / Air movements in a certain sector, and relaying that info to a user group. just to develop a better sense of ones surroundings.

take care  

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Early warning radar
« Reply #1 on: 17 Dec 2002, 22:08:25 »
Here's an idea to try:

1. Place a trigger that is set to detect the presence of one side.

2. Name the trigger Radar.

3. Give it an x and y area in a circle as large as you'd like the radio detection to cover.

4. Set the trigger to activate repeatedly.

5. In the trigger's On Activation field, put the following code:

Code: [Select]
(list Radar) exec "radar.sqs"
6. Create the script, radar.sqs, and have the script do whatever you wanted to do, such as give a warning message, or whatnot.

You could have it count the number of enemy units, determine their direction from the radar station (or any other object), dispatch friendly units to the area, or whatever.
« Last Edit: 17 Dec 2002, 22:13:02 by Ranger »
Ranger