commandFollow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|COMMANDFOLLOW]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|COMMANDFOLLOW]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COMMANDFOLLOW]]
 
[[Category:Scripting Commands ArmA|COMMANDFOLLOW]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066"> '''''unit'' commandFollow ''formationLeader'''''</h2>
|arg= local |= Arguments in MP
____________________________________________________________________________________________


| Order the given unit to follow the given other unit (via the radio). |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''commandFollow''' teamleader |= Syntax


'''unit:''' [[Object]] or [[Array]]
|p1= unit: [[Object]] - unit that should follow teamleader |= Parameter 1


'''formationLeader:''' [[Object]]
|p2= teamleader: [[Object]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldier1 commandFollow soldier2</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
| [[doFollow]] |= See also


'''Description:'''
}}


Order unit to follow given '''unit''' (via radio).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''commandFollow''' [[player]]
[[Category:Scripting Commands|COMMANDFOLLOW]]
[[Category:Scripting Commands OFP 1.96|COMMANDFOLLOW]]
[[Category:Scripting Commands OFP 1.46|COMMANDFOLLOW]]
[[Category:Scripting Commands ArmA|COMMANDFOLLOW]]

Revision as of 22:57, 1 August 2006

Hover & click on the images for description

Description

Description:
Order the given unit to follow the given other unit (via the radio).
Groups:
Uncategorised

Syntax

Syntax:
unit commandFollow teamleader
Parameters:
unit: Object - unit that should follow teamleader
teamleader: Object
Return Value:
Nothing

Examples

Example 1:
soldier1 commandFollow soldier2

Additional Information

See also:
doFollow

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