Home   Help Search Login Register  

Author Topic: Knowsabout  (Read 1732 times)

0 Members and 1 Guest are viewing this topic.

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:Knowsabout
« Reply #15 on: 08 Mar 2003, 07:48:09 »
Hmm?

Ben

SSG Plazmoid

  • Guest
Re:Knowsabout
« Reply #16 on: 08 Mar 2003, 10:01:52 »
I wanted to check what a particular squad of units knew about any player controlled unit. I then wanted to force the AI to pursue the player even if they didn't know enough about the player target yet.

So, I decided to use reveal. Testing with a continuously running loop of what each element of the AI squad knew about my target I revealed the target to the squad. I was suprised to note that even as the AI squad was firing at the target location (I gave them a dofire order in script) the knowsabout value for the target NEVER CHANGED. After a short time the AI squad forgot about the target and went on their merry way.

In short, reveal has no effect on knowsabout that I could measure.

Offline Spinor

  • Members
  • *
  • I'm a llama!
    • The chain of command
Re:Knowsabout
« Reply #17 on: 08 Mar 2003, 14:48:25 »
Quote
Hmm?
Hmm? The idea is to reveal every detected enemy to every friendly unit. I gathered this is what you are after? For this to work you need an array of all friendly units, e.g. if you have two groups on your side, you could do it like:
AllFriendlies = (units grp1) + (units grp2)

In addition, you need an array of all detected enemy units. This is provided by an "East detected by West" Trigger (for example where east is the enemy). The trigger should cover the whole map. Give this trigger a name like EdbW and use
AllDetectedEnemies = list EdbW
(the list command returns an array of units within a triggers scope).
Now you should have everything ready for the above reveal snippet to work.

Quote
In short, reveal has no effect on knowsabout that I could measure.
When I tested it, it has an effect on the knowsabout value (check out the attached mission, where an east group is revealed every 20 secs to the leader of a west group.
My findings are:
-When revealing a unit, the knowsabout value (KA) jumps to 1.0
-When the unit is too far away (~1000m, viewdistance?), KA immediately drops back to zero
-Within the above range, KA slowly drops off normally after revealing
-In addition, if sufficiently close, the behaviour of the unit to which the enemy is revealed switches to combat and it will even try to attack the actually invisible enemy  

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:Knowsabout
« Reply #18 on: 08 Mar 2003, 16:43:49 »
I'm going to try your test mission out.  

My first test had a huge trigger.  I revealed all east to west.  I thought that if I did that those revealed units would show up on my target menu but they did not.  More knowledge of knowsabout and reveal is needed by me.  Knowsabout should diminish when far away but I don't think it shouldn't if there is a group there (not yours) that has a high knowsabout.  If you send a unit from your squad half way across the map they will report all enemies back to you.  I'm just wondering why groups on the same side don't know about each other.

Ben