setFriend: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|SETFRIEND]]
[[Category:Scripting Commands ArmA|SETFRIEND]]


<new command not populated>


<h2 style="color:#000066">'''''side1'' setFriend ''[side2, value]'''''</h2>


<h2 style="color:#000066">''''' setFriend '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''side1:''' [[Side]]
 
'''[side2, value]:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Version 1.86 required.


'''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.


'''Example:'''
'''Example:'''

Revision as of 14:10, 3 July 2006


side1 setFriend [side2, value]


Operand types:

side1: Side

[side2, value]: Array

Type of returned value:

Nothing

Compatibility:

Version 1.86 required.

Description:

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

Example: