reveal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|arg= global
|arg= global
Line 11: Line 28:
|gr1= Object Manipulation
|gr1= Object Manipulation


| 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 [[knowsAbout|knowledge value]] will be set to the highest level any unit of the revealing side has about the revealed target. If the revealing side has ''no'' knowledge about the revealed target, the value will be set to 1.<br><br>
|descr= 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 [[knowsAbout|knowledge value]] will be set to the highest level any unit of the revealing side has about the revealed target. If the revealing side has ''no'' knowledge about the revealed target, 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 target, too. The knowledge level can only be increased, not decreased by this command. Use [[forgetTarget]] first if you need to decrease value.<br><br>
{{Feature | informative | The knowledge level can only be increased by this command, not decreased. Use [[forgetTarget]] first if you need to decrease value.}}


{{Feature | Informative | In multiplayer, [[targetKnowledge]] and [[knowsAbout]] infos get updated only on the PC where command was executed.}}
|mp= [[targetKnowledge]] and [[knowsAbout]] information only get updated on the PC where this command was executed.


| toWhom [[reveal]] target
|s1= toWhom [[reveal]] target


|p1= toWhom: [[Object]] or [[Group]]  which receives revealing information
|p1= toWhom: [[Object]] or [[Group]]  which receives revealing information
Line 23: Line 40:
|p2= target: [[Object]]  which is revealed
|p2= target: [[Object]]  which is revealed


| [[Nothing]]
|r1= [[Nothing]]


|s2= toWhom [[reveal]] [target, accuracy]
|s2= toWhom [[reveal]] [target, accuracy] {{Since|arma2oa|1.60|y}}


|p21= toWhom: [[Object]] or [[Group]]  which receives revealing information
|p21= toWhom: [[Object]] or [[Group]]  which receives revealing information
Line 45: Line 62:


<dl class="command_description">
<dl class="command_description">
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on January 15, 2007</dd>
<dd class="notedate">Posted on January 15, 2007</dd>
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
<dd class="note">In '''OFP v1.96''', When a target is revealed to a unit, its 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.</dd>
<dd class="note">In '''OFP v1.96''', When a target is revealed to a unit, its 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.</dd>
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on January 24, 2008</dd>
<dd class="notedate">Posted on January 24, 2008</dd>
Line 56: Line 75:
player reveal _tank;
player reveal _tank;
{{cc|get in user actions become available instantly}}</code></dd>
{{cc|get in user actions become available instantly}}</code></dd>
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on January 15, 2012</dd>
<dd class="notedate">Posted on January 15, 2012</dd>
<dt class="note">[[User:kju|kju]]</dt>
<dt class="note">[[User:kju|kju]]</dt>
<dd class="note">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.</dd>
<dd class="note">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.</dd>
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on January 15, 2012</dd>
<dd class="notedate">Posted on January 15, 2012</dd>
Line 65: Line 86:
<dd class="note">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.</dd>
<dd class="note">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.</dd>


</dl>
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on October 21, 2014 - 15:37 (UTC)</dd>
<dd class="notedate">Posted on October 21, 2014 - 15:37 (UTC)</dd>
Line 79: Line 92:
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: <code>{[[player]] [[reveal]] _x} [[forEach]] [[allUnits]];</code>
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: <code>{[[player]] [[reveal]] _x} [[forEach]] [[allUnits]];</code>
</dd>
</dd>
</dl>
</dl>

Revision as of 10:46, 9 June 2021

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 target. If the revealing side has no knowledge about the revealed target, the value will be set to 1.
The knowledge level can only be increased by this command, not decreased. Use forgetTarget first if you need to decrease value.
Multiplayer:
targetKnowledge and knowsAbout information only get updated on the PC where this command was executed.
Groups:
Object Manipulation

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] Template:Since
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 knowsAbout information about soldierTwo is updated
Example 2:
player reveal cursorObject; // player knowsAbout information about object under cursor is updated
Example 3:
_soldierOne reveal [_soldierTwo, 1.5];

Additional Information

See also:
nearTargetsknowsAboutforgetTarget

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
Posted on January 15, 2007
Ceeeb
In OFP v1.96, When a target is revealed to a unit, its 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.
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;