setFriend: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETFRIEND]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETFRIEND]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETFRIEND]]


| ofpr |= Game name


<h2 style="color:#000066">'''''side1'' setFriend ''[side2, value]'''''</h2>
|1.86|= Game version
____________________________________________________________________________________________


| Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| side1 '''setFriend''' [side2, value] |= Syntax


'''side1:''' [[Side]]
|p1= side1: [[Side]] |= Parameter 1


'''[side2, value]:''' [[Array]]
|p2= [side2, value]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Sets how friendly '''side1''' is with '''side2'''.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETFRIEND]]
For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.
[[Category:Scripting Commands OFP Elite |SETFRIEND]]
[[Category:Scripting Commands ArmA|SETFRIEND]]

Revision as of 23:14, 1 August 2006

Hover & click on the images for description

Description

Description:
Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.
Groups:
Uncategorised

Syntax

Syntax:
side1 setFriend [side2, value]
Parameters:
side1: Side
[side2, value]: Array
Return Value:
Nothing

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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

Bottom Section