BIS_fnc_ambientAnimCombat

From Bohemia Interactive Community
Revision as of 02:30, 17 June 2018 by R3vo (talk | contribs) (typo)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Play set of ambient animations on given unit AND allows the unit to leave the ambient state and engage enemy or move away. Template:note
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[unit, animationset, equipmentlevel, condition, behaviour] call BIS_fnc_ambientAnimCombat;
Parameters:
Unit Object - Unit where the animations will be played
Animation-Set String - The animationset to play
Possible values are:
  • STAND
  • STAND_IA
  • SIT_LOW
  • KNEEL
  • LEAN
  • WATCH
  • WATCH1
  • WATCH2
Equipment-Level String - The equipment level of the unit
Possible values are:
  • NONE
  • LIGHT
  • MEDIUM
  • FULL
  • ASIS
  • RANDOM
Condition Code or String - optional - condition that if true frees the unit from the animation loop
Behaviour String - optional - behaviour the unit should go to, when freed. Default "COMBAT"
Return Value:
None

Examples

Example 1:
[_unit,"STAND","FULL",{(player distance _this) < 5}] call BIS_fnc_ambientAnimCombat;

Additional Information

See also:
BIS_fnc_ambientAnim

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

Notes

Bottom Section