behaviour: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Return the behaviour of a unit. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''behaviour''' unit |= Syntax | ||
|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> | |||
returns "CARELESS" |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[setBehaviour]] |= See also | |||
}} | |||
<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|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
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