behaviour: Difference between revisions

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


| ofp |= Game name


<h2 style="color:#000066"> '''behaviour ''unit'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Return the behaviour of a unit. |= Description
____________________________________________________________________________________________


'''unit:''' [[Object]]
| '''behaviour''' unit |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object]] |= Parameter 1


[[String]]
| [[String]]
One of "CARELESS", "SAFE", "AWARE", "COMBAT" and "STEALTH". |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldier setBehaviour "CARELESS"
_b = behaviour soldier </pre>


'''Description:'''
returns "CARELESS" |= Example 1
____________________________________________________________________________________________


Behaviour mode of given unit.
| [[setBehaviour]] |= See also


Possible options are:
}}


* "CARELESS"
<h3 style="display:none">Notes</h3>
* "SAFE"
<dl class="command_description">
* "AWARE"
<!-- Note Section BEGIN -->
* "COMBAT"
* "STEALTH"


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


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


_mood = '''behaviour''' [[player]]
[[Category:Scripting Commands|BEHAVIOUR]]
[[Category:Scripting Commands OFP 1.96|BEHAVIOUR]]
[[Category:Scripting Commands OFP 1.46|BEHAVIOUR]]
[[Category:Scripting Commands ArmA|BEHAVIOUR]]

Revision as of 22:07, 1 August 2006

Hover & click on the images for description

Description

Description:
Return the behaviour of a unit.
Groups:
Uncategorised

Syntax

Syntax:
behaviour unit
Parameters:
unit: Object
Return Value:
String - One of "CARELESS", "SAFE", "AWARE", "COMBAT" and "STEALTH".

Examples

Example 1:
soldier setBehaviour "CARELESS"
_b = behaviour soldier 
returns "CARELESS"

Additional Information

See also:
setBehaviour

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