commandFollow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (template:command argument fix)
(23 intermediate revisions by 9 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#C|COMREF]]
{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066"> '''commandFollow ''formationLeader'''''</h2>
| ofp |= Game name


|1.00|= Game version


'''Operand types:'''
|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''formationLeader:''' [[Object]]
| Order the given unit to follow the given other unit (via the radio). |DESCRIPTION=
____________________________________________________________________________________________


'''Type of returned value:'''
| unitName '''commandFollow''' followedunit |SYNTAX=


[[Nothing]]
|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=


'''Description:'''
|p2= followedunit: [[Object]] |PARAMETER2=


Order unit to follow given '''unit''' (via radio).
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <pre>_soldier1 commandFollow _soldier2</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[doFollow]] |SEEALSO=


'''Example:'''
}}


soldierOne '''commandFollow''' [[player]]
<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:Scripting Commands|COMMANDFOLLOW]]
[[Category:Scripting Commands OFP 1.99|COMMANDFOLLOW]]
[[Category:Scripting Commands OFP 1.96|COMMANDFOLLOW]]
[[Category:Scripting Commands OFP 1.46|COMMANDFOLLOW]]
[[Category:Scripting Commands ArmA|COMMANDFOLLOW]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:35, 7 April 2019

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:
unitName commandFollow followedunit
Parameters:
unitName: Object or Array
followedunit: 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