sideUnknown: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(51 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| The unknown [[Side|side]].
|game3= tkoh
<br>Used when the side of a unit is unknown, e.g. for spotted targets with insufficient information. |= Description
|version3= 1.00
____________________________________________________________________________________________


| '''sideUnknown''' |= Syntax
|game4= arma3
|version4= 0.50


|p1= |PARAMETER1=  
|gr1= Sides


|p2= |PARAMETER2=
|descr= The unknown [[Side|side]].
<br>Used when the side of a unit is unknown, e.g. for spotted targets with insufficient information.


|p3= |PARAMETER3=  
|s1= '''sideUnknown'''


| [[Side]] |RETURNVALUE=
|r1= [[Side]]


 
|x1= <sqf>
|x1= <code>//soldier1 and soldier2 of different sides and out of sight
//soldier1 and soldier2 of different sides and out of sight
soldier1 [[reveal]] soldier2;
soldier1 reveal soldier2;
[[hint]] [[str]] (soldier1 [[nearTargets]] 1000);
hint str (soldier1 nearTargets 1000);
//returns: [[[1557.96,5047.4,1.32402],"SoldierWB",UNKNOWN,0.0155183,soldier2,5]]
//returns: [[[1557.96,5047.4,1.32402],"SoldierWB",UNKNOWN,0.0155183,soldier2,5]]
soldier1 [[reveal]] [soldier2,1.5];
soldier1 reveal [soldier2,1.5];
//returns: [[[1556.52,5050.08,1.32402],"SoldierWB",WEST,0.0211193,soldier2,5]]
//returns: [[[1556.52,5050.08,1.32402],"SoldierWB",WEST,0.0211193,soldier2,5]]
</code>|EXAMPLE1=
</sqf>
 
____________________________________________________________________________________________
 
| [[nearTargets]], [[reveal]], [[Side]], [[side]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideEnemy]], [[playerSide]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |SEEALSO=


| |MPBEHAVIOUR=  
|seealso= [[nearTargets]] [[reveal]] [[Side]] [[side]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideEnemy]] [[playerSide]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:42, 3 September 2024

Hover & click on the images for description

Description

Description:
The unknown side.
Used when the side of a unit is unknown, e.g. for spotted targets with insufficient information.
Groups:
Sides

Syntax

Syntax:
sideUnknown
Return Value:
Side

Examples

Example 1:
//soldier1 and soldier2 of different sides and out of sight soldier1 reveal soldier2; hint str (soldier1 nearTargets 1000); //returns: [[[1557.96,5047.4,1.32402],"SoldierWB",UNKNOWN,0.0155183,soldier2,5]] soldier1 reveal [soldier2,1.5]; //returns: [[[1556.52,5050.08,1.32402],"SoldierWB",WEST,0.0211193,soldier2,5]]

Additional Information

See also:
nearTargets reveal Side side west east resistance civilian sideLogic sideFriendly sideEnemy playerSide sideEmpty sideAmbientLife Side Relations

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