Home   Help Search Login Register  

Author Topic: KnowsAbout  (Read 1191 times)

0 Members and 1 Guest are viewing this topic.

Hartza

  • Guest
KnowsAbout
« on: 04 Sep 2002, 15:33:25 »
HI!

In my mission there are 4 east patrols ( East1 ...East4 ) which are guarding the city area.

Players groups ( name= Strike ) mission is to rescue resistance leader kept in one of the houses in the city.

I like to make an trigger that alarms backup troops for these 4 east patrol, if they knows that players are there. With this trigger I could also set patrols bahavior to combat , etc.

I tried East1 KnowsAbout Strike command, but keep getting this same error: expected object etc...

How should I make this alarm thing  ???

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:KnowsAbout
« Reply #1 on: 04 Sep 2002, 15:39:12 »
why not just place a trigger with conditon West detected by East (select it at the top) - that will do the same for u
Proud Member of the Volunteer Commando Battalion

Offline KTottE

  • Former Staff
  • ****
Re:KnowsAbout
« Reply #2 on: 04 Sep 2002, 15:40:34 »
Code: [Select]
unit knowsAbout target
Operand types:
    unit: Object or Group
    target: Object
Type of returned value:
    Number
Description:
    Check if (and how much) knows unit about target. If unit is vehicle, vehicle commander is considered.

Example:
    soldierOne knowsAbout jeepOne

You can't use a group as the target, it has to be an object. So maybe use a forEach thing?
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:KnowsAbout
« Reply #3 on: 04 Sep 2002, 15:43:37 »
Cant you foreach as a condition.  You have to use Count.

Hartza

  • Guest
Re:KnowsAbout
« Reply #4 on: 04 Sep 2002, 15:43:49 »
Crap !

Of course ...  :-[

Messiah is right ...

sometimes answer is too obvious and you just try to think too difficulty ...  ;D  :P
« Last Edit: 04 Sep 2002, 15:45:23 by Hartza »