Results 1 to 4 of 4

Thread: Binding "detected by" to a specific detecting unit, please help

  1. #1

    Question Binding "detected by" to a specific detecting unit, please help


    I know I'm a newbie here, but please heed my call.
    I have researched this on the forums, in other tutorials but I can't find anything helpful.

    I have a unit (let's call it "heli"), tied to a trigger, and that trigger fires when it is "detected by BLUFOR".
    Now, tying this trigger to the unit ("heli") makes the trigger fire only "when "heli" is detected.

    But how do I make it so only a specific unit can be accepted as the one to detect this?
    In simple terms, how do I make if 'heli' spotted by 'player' then ....

  2. #2
    In the condition, try:
    player knowsAbout heli > 1

    Adjust the number to suit your requirements.

    All units in a group share the same knowledge of the world (ie, all have the same knowsAbout value for any object)

    For reference, a detected by trigger is the same as checking for knowsAbout > 0.
    In OFP, there were various knowsAbout values at which the AI can tell which side the target was on, what type of unit it is etc. But from memory these values were different for different types of unit/vehicle. It was quite clever though, for example the AI hard a hard time correctly identifying the side of a vehicle crewed by enemy if the type of vehicle was normally friendly to them (eg a west soldier in a stolen T72).

    Assuming the target is an enemy, another universal check you could use is the findNearestEnemy command, to see if the player has identified the target as a enemy.
    Last edited by ceeeb; Feb 27 2010 at 20:19.

  3. #3
    First Lieutenant galzohar's Avatar
    Join Date
    Jun 3 2009
    Ramat Hasharon, Israel
    The problem with this is that the actual meaning of the knowsAbout value is vague, and worse - it differs based on which addons you're using.
    You don't mess with the Zohar!
    YouTube channel:
    ArmA Israel:
    Check out and support upcoming Ground Branch:

  4. #4
    Well thanks, this seems to help.

    At least now I'm going into the right direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts