reveal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
mNo edit summary
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Reveals a unit to a [[group]]. If ''toWhom'' is a unit, unit's group is considered. If ''toWhom'' is a vehicle, vehicle commander's group is considered.   
| Reveals a target to a [[group]]. If ''toWhom'' is a unit, unit's group is considered. If ''toWhom'' is a vehicle, vehicle commander's group is considered.   


<br><br>The [[knowsAbout|knowledge value]] will be set to the highest level any unit of the revealing side has about the revealed unit. If the revealing side has ''no'' knowledge about the revealed unit, the value will be set to 1.
<br><br>The [[knowsAbout|knowledge value]] will be set to the highest level any unit of the revealing side has about the revealed unit. If the revealing side has ''no'' knowledge about the revealed unit, the value will be set to 1.
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


| toWhom '''reveal''' unitName |= Syntax
| toWhom '''reveal''' target |= Syntax


|p1= toWhom: [[Object]] or [[Group]]  which receives revealing information|= Parameter 1
|p1= toWhom: [[Object]] or [[Group]]  which receives revealing information|= Parameter 1


|p2= unitName: [[Object]]  which is revealed |= Parameter 2
|p2= target: [[Object]]  which is revealed |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= toWhom '''reveal''' [unitName, accuracy] |=  
|s2= toWhom '''reveal''' [target, accuracy] |=  


|p21= toWhom: [[Object]] or [[Group]]  which receives revealing information|= Parameter 1
|p21= toWhom: [[Object]] or [[Group]]  which receives revealing information|= Parameter 1


|p22= unitName: [[Object]]  which is revealed |= Parameter 2
|p22= target: [[Object]]  which is revealed |= Parameter 2


|p23= accuracy: [[Number]] - knowledge value, clamped to 0...4 range |= Parameter 3
|p23= accuracy: [[Number]] - knowledge value, clamped to 0...4 range |= Parameter 3

Revision as of 18:33, 7 October 2015


Hover & click on the images for description

Description

Description:
Reveals a target to a group. If toWhom is a unit, unit's group is considered. If toWhom is a vehicle, vehicle commander's group is considered.

The knowledge value will be set to the highest level any unit of the revealing side has about the revealed unit. If the revealing side has no knowledge about the revealed unit, the value will be set to 1.

Since ARMA 2 OA 1.60 the alternative syntax is available. Values greater than or equal 1.5 reveal the side of the unit, too.

The knowledge level can only be increased, not decreased by this command.
Groups:
Uncategorised

Syntax

Syntax:
toWhom reveal target
Parameters:
toWhom: Object or Group which receives revealing information
target: Object which is revealed
Return Value:
Nothing

Alternative Syntax

Syntax:
toWhom reveal [target, accuracy]
Parameters:
toWhom: Object or Group which receives revealing information
target: Object which is revealed
accuracy: Number - knowledge value, clamped to 0...4 range
Return Value:
Nothing

Examples

Example 1:
_soldierOne reveal _soldierTwo; //soldierOne received information about soldierTwo
Example 2:
player reveal cursorTarget; //player receives information about the object below its cursor
Example 3:
_soldierOne reveal [_soldierTwo, 1.5];

Additional Information

See also:
nearTargetsknowsAbout

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

Notes

Posted on January 15, 2007
Ceeeb
In OFP v1.96, When a target is revealed to a unit, it's knowsAbout rating is set to 1, unless it was already more than 1 in which case reveal does nothing. See knowsAbout for more details about knowsAbout ratings and limitations.
Posted on January 24, 2008
Doolittle
Use reveal to allow client to see a created vehicle faster - the associated menu interaction will become available therefore, like the player has option to get in sooner. _tank = "M1A1" createVehicle (position player); player reveal _tank; //get in user actions become available instantly
Posted on January 15, 2012
kju
The same idea from Doolittle's note applies to beaming of units. If you setPos an unit or a player, reveal (all) nearby objects and vehicles to make the interaction possible a lot quicker.
Posted on January 15, 2012
kju
Revealing a targetUnit will also add it to nearTargets database of the given sourceUnit. The quality/detail level of the info depends on the knowsAbout value used with reveal. More detail in the nearTargets page.

Bottom Section

Posted on October 21, 2014 - 15:37 (UTC)
Killzone Kid
Units that have been previously subjected to enableSimulation false; or enableSimulationGlobal false; may stay unrecognised for a long time even after simulation was re-enabled, returning objNull as cursorTarget. Force revealing units with reveal command usually solves the problem. For example: {player reveal _x} forEach allUnits;