BIS fnc animalBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|SEEALSO= }" to " }")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= Ambient
|gr1= Ambient


| Animal behaviour control. Called by Animals_F\Data\Scripts\main.fsm.
|descr= Animal behaviour control. Called by <tt>Animals_F\Data\Scripts\main.fsm</tt>.


|s1=[animal] call [[BIS_fnc_animalBehaviour]]
|s1= [animal] call [[BIS_fnc_animalBehaviour]]


|p1= animal: [[Object]] - The controlled animal
|p1= animal: [[Object]] - The controlled animal
Line 17: Line 16:
|x1= <code>[animal] [[call]] [[BIS_fnc_animalBehaviour]];</code>
|x1= <code>[animal] [[call]] [[BIS_fnc_animalBehaviour]];</code>


| [[Arma 3 Animals: Override Default Animal Behaviour Via Script | Animal Behaviour]], [[createAgent]]
|seealso= [[Arma 3 Animals: Override Default Animal Behaviour Via Script | Animal Behaviour]], [[createAgent]]
}}
}}


Line 25: Line 24:
<dd class="notedate">Posted on September 29, 2014 - 19:38 (UTC)</dd>
<dd class="notedate">Posted on September 29, 2014 - 19:38 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
<dd class="note">To override, add <code>_agent [[setVariable]] ["BIS_fnc_animalBehaviour_disable", true];</code> right after agent creation.</dd>
To override, add <code>_agent [[setVariable]] ["BIS_fnc_animalBehaviour_disable", true];</code> right after agent creation.
</dd>


</dl>
</dl>

Revision as of 18:04, 13 June 2021

Hover & click on the images for description

Description

Description:
Animal behaviour control. Called by Animals_F\Data\Scripts\main.fsm.
Execution:
call
Groups:
Ambient

Syntax

Syntax:
[animal] call BIS_fnc_animalBehaviour
Parameters:
animal: Object - The controlled animal
Return Value:
Nothing

Examples

Example 1:
[animal] call BIS_fnc_animalBehaviour;

Additional Information

See also:
Animal BehaviourcreateAgent

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
Posted on September 29, 2014 - 19:38 (UTC)
Killzone Kid
To override, add _agent setVariable ["BIS_fnc_animalBehaviour_disable", true]; right after agent creation.