knowsAbout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(knowledge could only be group or side, description corrected)
mNo edit summary
 
(65 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= global |= Arguments in MP
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Checks if a group or side knows about target. If unitOrGroup is a vehicle, vehicle commander's group is considered. |= Description
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| unitOrGroup '''knowsAbout''' target |= Syntax
|game5= arma2oa
|version5= 1.50


|p1= unitOrGroup: [[Object]] or [[Group]]. In case of [[Object]], object's [[Group]] is used.  |= Parameter 1
|game6= tkoh
|version6= 1.00


|p2= target: [[Object]] |= Parameter 2
|game7= arma3
|version7= 0.50


| [[Number]] in the range of 0 - 4, where 4 is max knowledge |= Return value
|arg= local


| s2=side '''knowsAbout''' target |= Syntax
|gr1= Object Manipulation


|p21= side:  [[Side]] |= Parameter 1
|gr2= Sides


|p22= target: [[Object]] |= Parameter 2
|descr= Checks if a group or a side knows about target.
* Enemy knowledge is instantly shared among the group units
* Units in the same group always perfectly know about each others
* AI knowledge cannot check beyond current [[viewDistance]] and it resets to zero as soon as the target's distance is over it<br>Note: neither fog nor daylight affect this behaviour
* Losing sight of a target for more than 120 seconds resets its [[knowsAbout]] to zero as well
* '''Magic number''' is the value that must be reached for a unit to shoot at an enemy (used by "Detected by" triggers as well):
:{{{!}}class="wikitable align-center"
! Game
{{!}} {{GVI|ofp|1.46}}
{{!}} {{GVI|ofpr|1.96}}
{{!}} {{GVI|arma1|1.18}}
{{!}} {{GVI|arma2|1.11}}
{{!}} {{GVI|arma2oa|1.62}}
{{!}} {{GVI|arma3|1.82}}
{{!}}-
! Magic value
{{!}} 0.7
{{!}} 0.105
{{!}} ?
{{!}} ?
{{!}} ?
{{!}} ?
{{!}}}


| r2= [[Number]] in the range of 0 - 4, where 4 is max knowledge |= Return value
|s1= who [[knowsAbout]] target


|mp= Although the command works only properly if <tt>unit</tt> is local, <tt>target</tt> can be located on any computer of the network. |=
|p1= who: [[Object]], [[Group]] or [[Side]] - if a unit, unit's [[group]] is considered; if a vehicle, vehicle commander's [[group]] is used.
____________________________________________________________________________________________
 
|x1= <code>_kv = _soldierOne [[knowsAbout]] _jeepOne;</code> |= Example 1


|x2= <code>_kv = ([[side]] [[player]]) [[knowsAbout]] _target;</code> |= Example 2
|p2= target: [[Object]]
____________________________________________________________________________________________


| [[nearTargets]], [[reveal]], [[getHideFrom]], [[targetKnowledge]], [[targetsAggregate]], [[targetsQuery]] |= See also
|r1= [[Number]] - in range of 0..4, where 4 is maximum knowledge.


|mp= ''who'' '''must''' be local, while ''target'' can be remote.
|x1= <sqf>_knowledge = player knowsAbout _target;</sqf>
|x2= <sqf>_knowledge = (group player) knowsAbout _target;</sqf>
|x3= <sqf>_knowledge = (side player) knowsAbout _target;</sqf>
|seealso= [[nearTargets]] [[reveal]] [[getHideFrom]] [[targetKnowledge]] [[targetsAggregate]] [[targetsQuery]] [[forgetTarget]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Hardrock
<!-- Note Section BEGIN -->
|timestamp= 20060804105500
<dd class="notedate">Posted on August 4, 2006 - 10:55
|text= {{GVI|ofpr|1.91}}
<dt class="note">'''[[User:Hardrock|hardrock]]'''
* As soon as An AI unit gets hit with a bullet his [[knowsAbout]] level for the unit that shot him will instantly jump to 1.5, even if the shooter is 1000m away.<br>Vice versa is also true. If An AI soldier's [[knowsAbout]] level for an enemy is 0.7 and the soldier fires and hits the enemy, his [[knowsAbout]] level about the enemy will instantly jump to 1.5.
<dd class="note">''Notes from before the conversion:''
* Some editors have found, whilst using this command over the years, that the following characteristics have cropped up:
With '''Resistance (1.91)''': No matter what class of unit the target is and no matter what the skill/class of the enemy AI, the magic 'knowsAbout' number is 0.105.
** AI enemies have a very limited amount of peripheral vision, it is not nearly as good as a human player's. A target must be in front of the unit for him to be noticed, so if you sprint right behind an enemy, this value doesn't increase.
With '''CWC (1.46)''': No matter what class of unit the target is and no matter what the skill/class of the enemy AI, the magic 'knowsAbout' number is 0.7.
** Depending on the unit's skill level, it can take a little time for the unit to notice a target. So if you run right past a unit, this value might not increase.
What this means is, the AI will not fire on an enemy soldier until his 'knowsAbout' level of that enemy has reached the 'magic number' or higher.
** Bushes between the unit and the target seem to have little effect on this value, and trees definitely have no effect. You may be in a forest and can't see the unit, but he can see you.
This suggests that the knowsabout level must reach the magic threshold before a unit knows if another unit is an enemy or a friendly unit.
}}
Triggers and knowsabout level: "Detected by xxx" triggers also follow the above rules. For a detected trigger to be set off, the knowsAbout level must reach the magic number.
Also... As soon as An AI unit gets hit with a bullet his knowsAbout level for the unit that shot him will instantly jump to 1.5, even if the shooter is 1000m away. Vice versa is also true. If An AI soldier's knowsAbout level for an enemy is 0.7 and the soldier fires and hits the enemy, his knowsAbout level about the enemy will instantly jump to 1.5. Some editors have found, whilst using this command over the years, that the following characteristics have cropped up:  
AI enemies have a very limited amount of peripheral vision, it's not nearly as good as a human player's. A target must be in front of the unit for him to be noticed, so if you sprint right behind an enemy, this value doesn't increase.  
Depending on the units skill level, it can take a little time for the unit to notice a target. So if you run right past a unit, this value might not increase.  
Bushes between the unit and the target seem to have little effect on this value, and trees definitely have no affect. You may be in a forest, and can't see the unit, but he can see you.  
MP Note knowsAbout returns a viable result only if left-hand parameter unit is [[local]].


<dd class="notedate">Posted on January 15, 2007
{{Note
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
|user= Bdfy
<dd class="note">In '''OFP v1.96''', KnowsAbout return values range from 0 to 4.
|timestamp= 20070116162500
<dd class="note">All units in a group have equal knowsAbout for any given target. All units in a group always return knowsAbout 4 about each other. This suggests groups share a single knowledge base.
|text= {{hl|the magic [[knowsAbout]] number is 0.105}} It's not that simple. Maybe true for infantry but not all vehicles:<br>
<dd class="note">Without any contact with the target, the knowsAbout value decays at a linear rate so that it halves over 120 seconds. After this time is up knowsAbout drops instantly to 0.
[[reveal|Reveal]] command sets [[knowsAbout]] to 1, but planes still won't fire at soldiers on the ground.
<dd class="note">If the distance between the all of unit's group and the target exceeds the viewdistance setting, knowsAbout instantly drops to 0. This is not changed by fog or daylight.
There's only one known way to pass through this - designate target with another fake infantry unit near the target.
As soon as this fake unit see the target [[knowsAbout]] lifts up to 2.5-4 and even single enemy soldiers are attacked from the air (of course if plane has suitable munition :))
}}


<dd class = "note">Note that in OFP unit see all the targets that his group members see. The data is processed between teammembers freely.
{{Note
<dt class="note">'''[[User:Bdfy|Bdfy]]'''
|user= Kju
<dd class = "note">''the magic 'knowsAbout' number is 0.105.'' It's not that simple.Maybe true for infantry but not all vehicles. "Reveal" command sets knowsAbout to 1, but planes still won't fire at soldiers on the ground. There's only one known way to pass through this - designate target with another fake infantry unit near the target. As soon as this fake unit see the target knowsAbout lifts up to 2.5-4 and even single enemy soldiers are attacked rom the air (of course if plane has suitable munition :))
|timestamp= 20120614100100
|text= According to '''[[User:Suma|Suma]]''':<br>
All friendly units within a view distance to each unit [are revealed (to the player? or each friendly?)] on the mission start.
The code is half broken, as it does not make the units known, it only sets the "accuracy" value for them.<br>
Note: This is not affecting enemy units at all.
}}


<dd class="notedate">Posted on July 05, 2009
{{Note
<dt class="note">'''[[User:MaestrO.fr|MaestrO.fr]]'''
|user= Helling3r
<dd class="note">In '''ArmA (other not tested)''', KnowsAbout value will stay at its highest value during approximately 2-3 min and then reinitialized.
|timestamp= 20130327232500
|text= {{GVI|arma2oa|1.62}} infantry tests:
It is still true that the command returns values between 0 (lowest) and 4 (most). Freshly Spotted units will have at least 1.5, slowly decreasing when the target disappeared.
The following table shows my test results on a clear day in Takistan using the Vector. Please note that the returned values vary considerably depending on weather and time. Moonlight however seems to not have any considerable effect.
{{{!}}
{{!}}- style="vertical-align: top"
{{!}}
{{{!}} class="wikitable"
{{!}}+ style="white-space: nowrap" {{!}} 12:00, sunlight, clear sky
! Distance
! knowsAbout
{{!}}-
{{!}} 1530 {{!}}{{!}} 1.5
{{!}}-
{{!}} 1370 {{!}}{{!}} 1.5
{{!}}-
{{!}} 1250 {{!}}{{!}} 1.5
{{!}}-
{{!}} 1135 {{!}}{{!}} 1.5
{{!}}-
{{!}} 1055 {{!}}{{!}} 1.52
{{!}}-
{{!}} 1022 {{!}}{{!}} 1.64
{{!}}-
{{!}} 990 {{!}}{{!}} 1.74
{{!}}-
{{!}} 833 {{!}}{{!}} 2.5
{{!}}-
{{!}} 720 {{!}}{{!}} 3.37
{{!}}-
{{!}} 600 {{!}}{{!}} 3.81
{{!}}-
{{!}} 505 {{!}}{{!}} 3.86
{{!}}-
{{!}} 400 {{!}}{{!}} 3.92
{{!}}-
{{!}} 380 {{!}}{{!}} 4
{{!}}-
{{!}} 365 {{!}}{{!}} 4
{{!}}}
{{!}}
{{{!}} class="wikitable"
{{!}}+ style="white-space: nowrap" {{!}} 21:00, bright half moon, clear sky
! Distance
! knowsAbout
{{!}}-
{{!}} 285 {{!}}{{!}} 1.5
{{!}}-
{{!}} 120 {{!}}{{!}} 1.5
{{!}}-
{{!}} 88 {{!}}{{!}} 1.89
{{!}}-
{{!}} 75 {{!}}{{!}} 2.3
{{!}}-
{{!}} 61 {{!}}{{!}} 3.9
{{!}}}
{{!}}
{{{!}} class="wikitable"
{{!}}+ style="white-space: nowrap" {{!}} 23:00, pitch black, clear sky, NVG on
! Distance
! knowsAbout
{{!}}-
{{!}} 600 {{!}}{{!}} 1.5
{{!}}-
{{!}} 487 {{!}}{{!}} 1.5
{{!}}-
{{!}} 390 {{!}}{{!}} 1.5
{{!}}-
{{!}} 289 {{!}}{{!}} 2.22
{{!}}-
{{!}} 278 {{!}}{{!}} 2.4
{{!}}}
{{!}}}
}}


<dd class="notedate">Posted on January 14, 2012
{{Note
<dt class="note">'''[[User:kju|kju]]'''
|user= Lou Montana
<dd class="note">Notes are for '''OA 1.60''':
|timestamp= 20180603104600
<dd class="note">The KnowsAbout value drops immediately back to zero, if the distance between both units is larger than the local viewDistance value.
|text= {{GVI|arma3|1.82}} [[knowsAbout]] tests, player moving towards enemy AI, facing each other:
<dd class="note">After 110 seconds without (visible?) contact, the KnowsAbout value drops to zero again. While it seemed to take longer the higher the KnowsAbout value is (at least for a value of 4 it took almost six minutes at one point), I was unable to reproduce/confirm that. It is 110 seconds no matter how high the KnowsAbout value it seems.  
{{{!}} class="wikitable" style="font-size: 0.85em"
{{!}}+ Tests executed in VR, default date (2035-05-28), with AI [[behaviour]] "AWARE"
! Daytime
! AI equipment
! AI skill and rank
! player stance and speed
! player outfit
! first detection distance
! first detection value
! max detection (4)
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 245.663
{{!}} 0.148076
{{!}} 132.863
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} '''underwear only''', rifle
{{!}} 246.815
{{!}} 1.19377
{{!}} 132.9
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F, '''no uniform'''
{{!}} 241.885
{{!}} 1.24
{{!}} 132.56
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} '''B_Sniper_F'''
{{!}} 156.715
{{!}} 2.95534
{{!}} 133.019
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} '''Lying down, running'''
{{!}} B_Soldier_F
{{!}} 105.401
{{!}} 4
{{!}} 105.401
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} '''Crouching, running'''
{{!}} B_Soldier_F
{{!}} 193.232
{{!}} 1.94615
{{!}} 134.556
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} '''Standing, sprinting'''
{{!}} B_Soldier_F
{{!}} 235.001
{{!}} 1.3146
{{!}} 134.445
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} '''0.2 - private'''
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 214
{{!}} 0.166763
{{!}} 124.553
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} '''1.0 - private'''
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 293.065
{{!}} 1.11004
{{!}} ''140.088''
{{!}}-
{{!}} 13:37
{{!}} Katiba + ACO (Green)
{{!}} '''0.5 - colonel'''
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 245.641
{{!}} 1.20426
{{!}} 132.113
{{!}}-
{{!}} 13:37
{{!}} '''no weapon'''
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 421.959
{{!}} 0.283476
{{!}} 109.274
{{!}}-
{{!}} 13:37
{{!}} '''Katiba + LRPS'''
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 244.962
{{!}} 4
{{!}} 244.962
{{!}}-
{{!}} '''20:00'''
{{!}} Katiba + ACO (Green)
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 132.089
{{!}} 0.62443
{{!}} 49.4895
{{!}}-
{{!}} '''20:00'''
{{!}} '''Katiba + ACO (Green), no NVG'''
{{!}} 0.5 - private
{{!}} Standing, running
{{!}} B_Soldier_F
{{!}} 10.6837
{{!}} 4
{{!}} 10.6837
{{!}}}


<dd class="notedate">Posted on June 13, 2012
Code used (click on "Expand" to the right):
<dt class="note">'''[[User:kju|kju]]'''
<div class="mw-collapsible mw-collapsed">
<dd class="note">By '''Suma''' ([https://dev-heaven.net/issues/27800#note-2 source]):
<sqf>
<dd class="note">All friendly units within a view distance to each unit [are revealed (to the player? or each friendly?)] on the mission start. The code is half broken, as it does not make the units known, it only sets the "accuracy" value for them. Note: This is not affecting enemy units at all.
player allowDamage false;
player enableFatigue false;


<dd class="notedate">Posted on March 27, 2013
player setPosATL [0,0,0];
<dt class="note">'''[[User:helling3r|helling3r]]'''
player setDir 0;
<dd class="note">Arma-II OA (1.62.101.480 @ACE), tests with infantry:
unit setPosATL [0,500,0];
<dd class="note">It is still true, that the command returns values between 0 (lowest) and 4 (most). Freshly Spotted units will have at least 1.5, slowly decreasing when the target disappeared.
unit setDir 180;
The following Table shows my test results on a clear day at Takistan using the Vector. Please note that the returned values vary considerably depending on weather and time. Moonlight however seems to not have any considerable effect.
{|
| style="vertical-align:top;" |
{| class="bikitable"
|+ style="white-space:nowrap;" | 12:00, sunlight, clear sky
!Distance
!knowsAbout
|-
|1530 || 1.5
|-
|1370 || 1.5
|-
|1250 || 1.5
|-
|1135 || 1.5
|-
|1055 || 1.52
|-
|1022 || 1.64
|-
|990 || 1.74
|-
|833 || 2.5
|-
|720 || 3.37
|-
|600 || 3.81
|-
|505 || 3.86
|-
|400 || 3.92
|-
|380 || 4
|-
|365 || 4
|}
| style="vertical-align:top;" |
{| class="bikitable"
|+ style="white-space:nowrap;" | 21:00, bright half moon, clear sky
!Distance
!knowsAbout
|-
|285 || 1.5
|-
|120 || 1.5
|-
|88 || 1.89
|-
|75 || 2.3
|-
|61 || 3.9
|}
| style="vertical-align:top;" |
{| class="bikitable"
|+ style="white-space:nowrap;" | 23:00, pitch black, clear sky, NVG on
!Distance
!knowsAbout
|-
|600 || 1.5
|-
|487 || 1.5
|-
|390 || 1.5
|-
|289 || 2.22
|-
|278 || 2.4
|}
|}


<dd class="notedate">Posted on May 31, 2014 - 16:51 (UTC)</dd>
waitUntil { speed player > 0 };
<dt class="note">'''[[User:Delta99 wiki|Delta99 wiki]]'''</dt>
<dd class="note">Can also use SIDE in place of UNIT. For example:
<code>EAST [[knowsAbout]] [[player]];</code>
</dl>
<!-- Note Section END -->


<h3 style="display:none">Bottom Section</h3>
[unit, player] spawn {
params ["_unit1", "_unit2"];
private _time = time;
private _knowsAboutData = [
format ["world = %1\ndate = %2\nanim = %3\nweapon/scope = %4/%5\nskill/rank = %6/%7\nplayerType = %8",
worldName,
date,
animationState player,
primaryWeapon _unit1,
(_unit1 weaponAccessories primaryWeapon _unit1) select 2,
skill _unit1,
rank _unit1,
typeOf _unit2
]
];
private "_knowsAbout";
private "_entry";
while { alive _unit1 && alive _unit2 } do
{
_knowsAbout = _unit1 knowsAbout _unit2;
_entry = [_unit1 distance _unit2, _knowsAbout];
_knowsAboutData pushBack _entry;
systemChat format ["time: %1 - %2", round (time - _time), _entry];
copyToClipboard str _knowsAboutData;
sleep 1;
};
};
</sqf>
</div>
}}


[[Category:Scripting Commands|KNOWSABOUT]]
{{Note
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
|user= ComradeCheekiBreeki
[[Category:Scripting Commands OFP 1.96|KNOWSABOUT]]
|timestamp= 20210901041629
[[Category:Scripting Commands OFP 1.46|KNOWSABOUT]]
|text= As of at least {{GVI|arma3|2.04}}, all sides appear to always perfectly know about props ({{hl|knowsAbout}} of 4) unless they are beyond max view distance. Direction of the observer, distance between observer and object (excluding those which are beyond the max view distance) and amount of obstructions between them do not seem to affect it. However, there is a short ~0.5 second delay after mission start before units perfectly know about props.<br><br>
[[Category:Scripting Commands ArmA|KNOWSABOUT]]
 
[[Category:Scripting Commands ArmA2|KNOWSABOUT]]
In addition, props appear to always have a {{hl|knowsAbout}} value of 0 regardless of side or other object checked, including other props.
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:45, 28 September 2023

Hover & click on the images for description

Description

Description:
Checks if a group or a side knows about target.
  • Enemy knowledge is instantly shared among the group units
  • Units in the same group always perfectly know about each others
  • AI knowledge cannot check beyond current viewDistance and it resets to zero as soon as the target's distance is over it
    Note: neither fog nor daylight affect this behaviour
  • Losing sight of a target for more than 120 seconds resets its knowsAbout to zero as well
  • Magic number is the value that must be reached for a unit to shoot at an enemy (used by "Detected by" triggers as well):
Game Logo A0.png1.46 ofpr version.gif1.96 Logo A1 black.png1.18 Logo A2.png1.11 A2 OA Logo.png1.62 Arma 3 logo black.png1.82
Magic value 0.7 0.105 ? ? ? ?
Multiplayer:
who must be local, while target can be remote.
Groups:
Object ManipulationSides

Syntax

Syntax:
who knowsAbout target
Parameters:
who: Object, Group or Side - if a unit, unit's group is considered; if a vehicle, vehicle commander's group is used.
target: Object
Return Value:
Number - in range of 0..4, where 4 is maximum knowledge.

Examples

Example 1:
_knowledge = player knowsAbout _target;
Example 2:
_knowledge = (group player) knowsAbout _target;
Example 3:
_knowledge = (side player) knowsAbout _target;

Additional Information

See also:
nearTargets reveal getHideFrom targetKnowledge targetsAggregate targetsQuery forgetTarget

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Hardrock - c
Posted on Aug 04, 2006 - 10:55 (UTC)
ofpr version.gif1.91
  • As soon as An AI unit gets hit with a bullet his knowsAbout level for the unit that shot him will instantly jump to 1.5, even if the shooter is 1000m away.
    Vice versa is also true. If An AI soldier's knowsAbout level for an enemy is 0.7 and the soldier fires and hits the enemy, his knowsAbout level about the enemy will instantly jump to 1.5.
  • Some editors have found, whilst using this command over the years, that the following characteristics have cropped up:
    • AI enemies have a very limited amount of peripheral vision, it is not nearly as good as a human player's. A target must be in front of the unit for him to be noticed, so if you sprint right behind an enemy, this value doesn't increase.
    • Depending on the unit's skill level, it can take a little time for the unit to notice a target. So if you run right past a unit, this value might not increase.
    • Bushes between the unit and the target seem to have little effect on this value, and trees definitely have no effect. You may be in a forest and can't see the unit, but he can see you.
Bdfy - c
Posted on Jan 16, 2007 - 16:25 (UTC)
the magic knowsAbout number is 0.105 It's not that simple. Maybe true for infantry but not all vehicles:
Reveal command sets knowsAbout to 1, but planes still won't fire at soldiers on the ground. There's only one known way to pass through this - designate target with another fake infantry unit near the target. As soon as this fake unit see the target knowsAbout lifts up to 2.5-4 and even single enemy soldiers are attacked from the air (of course if plane has suitable munition :))
Kju - c
Posted on Jun 14, 2012 - 10:01 (UTC)
According to Suma:
All friendly units within a view distance to each unit [are revealed (to the player? or each friendly?)] on the mission start. The code is half broken, as it does not make the units known, it only sets the "accuracy" value for them.
Note: This is not affecting enemy units at all.
Helling3r - c
Posted on Mar 27, 2013 - 23:25 (UTC)
A2 OA Logo.png1.62 infantry tests: It is still true that the command returns values between 0 (lowest) and 4 (most). Freshly Spotted units will have at least 1.5, slowly decreasing when the target disappeared. The following table shows my test results on a clear day in Takistan using the Vector. Please note that the returned values vary considerably depending on weather and time. Moonlight however seems to not have any considerable effect.
12:00, sunlight, clear sky
Distance knowsAbout
1530 1.5
1370 1.5
1250 1.5
1135 1.5
1055 1.52
1022 1.64
990 1.74
833 2.5
720 3.37
600 3.81
505 3.86
400 3.92
380 4
365 4
21:00, bright half moon, clear sky
Distance knowsAbout
285 1.5
120 1.5
88 1.89
75 2.3
61 3.9
23:00, pitch black, clear sky, NVG on
Distance knowsAbout
600 1.5
487 1.5
390 1.5
289 2.22
278 2.4
Lou Montana - c
Posted on Jun 03, 2018 - 10:46 (UTC)
Arma 3 logo black.png1.82 knowsAbout tests, player moving towards enemy AI, facing each other:
Tests executed in VR, default date (2035-05-28), with AI behaviour "AWARE"
Daytime AI equipment AI skill and rank player stance and speed player outfit first detection distance first detection value max detection (4)
13:37 Katiba + ACO (Green) 0.5 - private Standing, running B_Soldier_F 245.663 0.148076 132.863
13:37 Katiba + ACO (Green) 0.5 - private Standing, running underwear only, rifle 246.815 1.19377 132.9
13:37 Katiba + ACO (Green) 0.5 - private Standing, running B_Soldier_F, no uniform 241.885 1.24 132.56
13:37 Katiba + ACO (Green) 0.5 - private Standing, running B_Sniper_F 156.715 2.95534 133.019
13:37 Katiba + ACO (Green) 0.5 - private Lying down, running B_Soldier_F 105.401 4 105.401
13:37 Katiba + ACO (Green) 0.5 - private Crouching, running B_Soldier_F 193.232 1.94615 134.556
13:37 Katiba + ACO (Green) 0.5 - private Standing, sprinting B_Soldier_F 235.001 1.3146 134.445
13:37 Katiba + ACO (Green) 0.2 - private Standing, running B_Soldier_F 214 0.166763 124.553
13:37 Katiba + ACO (Green) 1.0 - private Standing, running B_Soldier_F 293.065 1.11004 140.088
13:37 Katiba + ACO (Green) 0.5 - colonel Standing, running B_Soldier_F 245.641 1.20426 132.113
13:37 no weapon 0.5 - private Standing, running B_Soldier_F 421.959 0.283476 109.274
13:37 Katiba + LRPS 0.5 - private Standing, running B_Soldier_F 244.962 4 244.962
20:00 Katiba + ACO (Green) 0.5 - private Standing, running B_Soldier_F 132.089 0.62443 49.4895
20:00 Katiba + ACO (Green), no NVG 0.5 - private Standing, running B_Soldier_F 10.6837 4 10.6837

Code used (click on "Expand" to the right):

player allowDamage false; player enableFatigue false; player setPosATL [0,0,0]; player setDir 0; unit setPosATL [0,500,0]; unit setDir 180; waitUntil { speed player > 0 }; [unit, player] spawn { params ["_unit1", "_unit2"]; private _time = time; private _knowsAboutData = [ format ["world = %1\ndate = %2\nanim = %3\nweapon/scope = %4/%5\nskill/rank = %6/%7\nplayerType = %8", worldName, date, animationState player, primaryWeapon _unit1, (_unit1 weaponAccessories primaryWeapon _unit1) select 2, skill _unit1, rank _unit1, typeOf _unit2 ] ]; private "_knowsAbout"; private "_entry"; while { alive _unit1 && alive _unit2 } do { _knowsAbout = _unit1 knowsAbout _unit2; _entry = [_unit1 distance _unit2, _knowsAbout]; _knowsAboutData pushBack _entry; systemChat format ["time: %1 - %2", round (time - _time), _entry]; copyToClipboard str _knowsAboutData; sleep 1; }; };

ComradeCheekiBreeki - c
Posted on Sep 01, 2021 - 04:16 (UTC)
As of at least Arma 3 logo black.png2.04, all sides appear to always perfectly know about props (knowsAbout of 4) unless they are beyond max view distance. Direction of the observer, distance between observer and object (excluding those which are beyond the max view distance) and amount of obstructions between them do not seem to affect it. However, there is a short ~0.5 second delay after mission start before units perfectly know about props.

In addition, props appear to always have a knowsAbout value of 0 regardless of side or other object checked, including other props.