Difference between revisions of "behaviour"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
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 23:07, 1 August 2006

Introduced with Operation Flashpoint version 1.001.00Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Return the behaviour of a unit.

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

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section