Home   Help Search Login Register  

Author Topic: Basic Radar Imitation  (Read 856 times)

0 Members and 1 Guest are viewing this topic.

apeters2525

  • Guest
Basic Radar Imitation
« on: 26 Nov 2005, 22:02:53 »
I have a problem that is sure to be simple to correct.

How do i get a unit to hold it's fire until an enemy unit enters a trigger, and then go back to holding its fire once the enemy unit left?

I tried setting up a trigger around the unit I want to hold it's fire and set it to Act:West  Present Repeat. I tried synch it with a waypoint of the friendly unit and tried to synch it to the unit directly. In the Act field of the trigger, i put sam1 setcombatmode "red, then I put in the deact sam1 setcombatmode "blue". This doesnt seem to work. Everytime the enemy helo spawns in during test, which is outside the trigger, the friendly unit on the ground fires anyways. Any thoughts?

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Basic Radar Imitation
« Reply #1 on: 26 Nov 2005, 23:06:56 »
you could do like:
Condition:(Vehicle Billy) in thislist
Activation:Billy setcaptive false
Deactivation:Billy setcaptive true

You will have to make the trigger activate repeatedly.
Also that top line may be a little off and if so just group the trigger to Billy.
« Last Edit: 26 Nov 2005, 23:07:28 by RujiK »
I like your approach, lets see your departure.
Download the New Flashlight Script!

apeters2525

  • Guest
Re:Basic Radar Imitation
« Reply #2 on: 26 Nov 2005, 23:31:48 »
Thanks, I will try when i get home tonight. It was a matter of learning.... i.e. thislist...

Anyways, I'll try it...thanks!

LoTekK

  • Guest
Re:Basic Radar Imitation
« Reply #3 on: 27 Nov 2005, 10:42:44 »
Did you remember to setCombatMode "blue" the unit (or group) at the start of the mission?
(that wasn't sarcastic, I know I've overlooked silly little things like that before)

apeters2525

  • Guest
Re:Basic Radar Imitation
« Reply #4 on: 27 Nov 2005, 20:46:40 »
Actually, no. I guess it is one of those silly things...lol! I'll have to try that as well as the suggestion posted above. Havent got the chance yet, had to work late.