reveal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 36: | Line 36: | ||
|s1= toWhom [[reveal]] target | |s1= toWhom [[reveal]] target | ||
|p1= toWhom: [[Object]] or [[Group]] | |p1= toWhom: [[Object]] or [[Group]] - which receives revealing information | ||
|p2= target: [[Object]] | |p2= target: [[Object]] - which is revealed | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|s2= toWhom [[reveal]] [target, accuracy] | |s2= toWhom [[reveal]] [target, accuracy] | ||
| | |s2since= arma2oa 1.60 | ||
|p22= target: [[Object]] | |p21= toWhom: [[Object]] or [[Group]] - which receives revealing information | ||
|p22= target: [[Object]] - which is revealed | |||
|p23= accuracy: [[Number]] - knowledge value, clamped to 0..4 range | |p23= accuracy: [[Number]] - knowledge value, clamped to 0..4 range | ||
Line 52: | Line 54: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf>_soldierOne reveal _soldierTwo; // soldierOne knowsAbout information about soldierTwo is updated</sqf> | ||
|x2= < | |x2= <sqf>player reveal cursorObject; // player knowsAbout information about object under cursor is updated</sqf> | ||
|x3= < | |x3= <sqf>_soldierOne reveal [_soldierTwo, 1.5];</sqf> | ||
|seealso= [[nearTargets]] | |seealso= [[nearTargets]] [[knowsAbout]] [[forgetTarget]] [[ignoreTarget]] | ||
}} | }} | ||
Line 64: | Line 66: | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2007-01-15</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 | <dd class="notedate">Posted on 2008-01-24</dd> | ||
<dt class="note">[[User:Doolittle|Doolittle]]</dt> | <dt class="note">[[User:Doolittle|Doolittle]]</dt> | ||
<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. | <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. | ||
< | <sqf> | ||
_tank = "M1A1" createVehicle (position player); | |||
player reveal _tank; | player reveal _tank; | ||
// get in user actions become available instantly | |||
</sqf></dd> | |||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2012-01-15</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 | <dd class="notedate">Posted on 2012-01-15</dd> | ||
<dt class="note">[[User:kju|kju]]</dt> | <dt class="note">[[User:.kju|.kju]]</dt> | ||
<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> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2014-10-21 - 15:37 (UTC)</dd> | ||
<dt class="note">[[User: | <dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
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: < | 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: | ||
<sqf>{player reveal _x} forEach allUnits;</sqf> | |||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 19:42, 3 September 2024
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.
- 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]
- 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:
- Example 3:
- _soldierOne reveal [_soldierTwo, 1.5];
Additional Information
- See also:
- nearTargets knowsAbout forgetTarget ignoreTarget
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 2007-01-15
- 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 2008-01-24
- 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 2012-01-15
- .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 2012-01-15
- .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 2014-10-21 - 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:
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Local Effect