reveal: Difference between revisions
Jump to navigation
Jump to search
(new syntax added) |
m (Moved note from talk page to main page.) |
||
Line 53: | Line 53: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on January 15, 2007 | <dd class="notedate">Posted on January 15, 2007 | ||
<dt class="note">'''[[User:Ceeeb|Ceeeb]]''' | <dt class="note">'''[[User:Ceeeb|Ceeeb]]''' | ||
<dd class="note">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. | <dd class="note">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. | ||
<dd class="notedate">Posted on January 24, 2008 | |||
<dt class="note">'''[[User:Doolittle|Doolittle]]''' | |||
<dd class="note">Use reveal to allow client to ''see'' a [[createVehicle|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 | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 08:27, 15 January 2012
Description
- Description:
- Reveals a unit to a group or another unit. 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:
- groupName reveal unitName
- Parameters:
- groupName: Object or Group which receives revealing information
- unitName: Object which is revealed
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- groupName reveal [unitName, accuracy]
- Parameters:
- groupName: Object or Group which receives revealing information
- unitName: 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
Bottom Section
Categories:
- Scripting Commands
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters