Difference between revisions of "behaviour"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 14: Line 14:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[String]] <nowiki>=</nowiki> '''behaviour''' [[Object#Unit|Unit]] |= Syntax
+
| [[String]] <nowiki>=</nowiki> '''behaviour''' unitName |= Syntax
  
|p1= [[Object#Unit|Unit]]: [[Object]] |= Parameter 1
+
|p1= unitName: [[Object]] |= Parameter 1
  
 
| [[String]] -   
 
| [[String]] -   

Revision as of 21:36, 21 January 2009

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 onEffects of this scripting command are not broadcasted over the network and remain 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:
String = behaviour unitName
Parameters:
unitName: 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
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section