doFollow: 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|DOFOLLOW]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DOFOLLOW]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DOFOLLOW]]
 
[[Category:Scripting Commands ArmA|DOFOLLOW]]
| ofp |= Game name
 
|1.00|= Game version


|arg= local |= Arguments in MP


<h2 style="color:#000066">'''''unit doFollow ''position'''''</h2>
|eff= global |= Effects in MP
____________________________________________________________________________________________


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


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


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


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


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


[[Nothing]]
| [[commandFollow]] |= See also


'''Description:'''
}}


Order unit to follow given unit (silently).
<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 '''doFollow''' [[player]]
[[Category:Scripting Commands|DOFOLLOW]]
[[Category:Scripting Commands OFP 1.96|DOFOLLOW]]
[[Category:Scripting Commands OFP 1.46|DOFOLLOW]]
[[Category:Scripting Commands ArmA|DOFOLLOW]]

Revision as of 00:48, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
soldier1 doFollow soldier2

Additional Information

See also:
commandFollow

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