Home   Help Search Login Register  

Author Topic: Knowsabout any group member  (Read 639 times)

0 Members and 4 Guests are viewing this topic.

Butler

  • Guest
Knowsabout any group member
« on: 07 May 2005, 14:42:23 »
Hi guys!

I want a script to activate when any member of a group is detected by a soldier, I dont want to use a "detected by east/west trigger with a radius"  Is this possible?

Like:  "ammodriver knowsAbout _x">0.105 foreach units mygrp" I know this is wrong, but i wrote this so you could get an idea of what i am looking for.

By the way. You guys are great. I love this site  ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Knowsabout any group member
« Reply #1 on: 07 May 2005, 15:02:55 »
You're almost right.    Try something like

(("ammodriver knowsAbout _x" > 0.105) count units mygrp) > 0

Syntax not guaranteed.
Plenty of reviewed ArmA missions for you to play

Butler

  • Guest
Re:Knowsabout any group member
« Reply #2 on: 07 May 2005, 16:00:42 »
Thank you macguba, but when i use this in the condition field of the trigger, I get this error message ">: Type string, expected number"

Maybe I am doing something wrong here, but I want this trigger to activate if the driver of a car (ammodriver) knowsabout me, or any of my team members. I tried to use the line you wrote, but that didnÂ't work.

Thanks anyway for quick reply  :)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Knowsabout any group member
« Reply #3 on: 07 May 2005, 17:48:41 »
I have not tested it but try:

{(ammodriver knowsAbout _x) > 0.105} count (units mygrp) > 0

Butler

  • Guest
Re:Knowsabout any group member
« Reply #4 on: 07 May 2005, 18:12:28 »
That worked!

Thanks to the both of you. I am very happy now!! ;D