BIS fnc animalBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma 3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Ambient
____________________________________________________________________________________________


| Animal behaviour control. Called by Animals_F\Data\Scripts\main.fsm. |DESCRIPTION=
|descr= Animal behaviour control. Called by {{hl|Animals_F\Data\Scripts\main.fsm}}.
____________________________________________________________________________________________


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


|p1= animal: [[Object]] - The controlled animal|= Parameter 1
|p1= animal: [[Object]] - the controlled animal
____________________________________________________________________________________________


| [[Nothing]]|RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <code>[animal] [[call]] [[BIS_fnc_animalBehaviour]];</code> |=
|x1= <sqf>[animal] call BIS_fnc_animalBehaviour;</sqf>
____________________________________________________________________________________________


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


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
<dt></dt>
[[Category:Function Group: Ambient|{{uc:animalBehaviour}}]]
<dd class="notedate">Posted on 2014-09-29 - 19:38 (UTC)</dd>
[[Category:Functions|{{uc:animalBehaviour}}]]
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
[[Category:{{Name|arma3}}: Functions|{{uc:animalBehaviour}}]]
<dd class="note">To override, add <sqf>_agent setVariable ["BIS_fnc_animalBehaviour_disable", true];</sqf> right after agent creation.</dd>


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

Latest revision as of 10:38, 6 May 2024

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 Behaviour createAgent

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