BIS fnc ambientAnimCombat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Complete redo of page)
No edit summary
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Play set of ambient animations on given unit AND allows the unit to leave the ambient state and engage enemy or move away. |= Description
| Play set of ambient animations on given unit AND allows the unit to leave the ambient state and engage enemy or move away.
{{note|Animations can be cancelled by calling _unit [[call]] '''BIS_fnc_ambientAnim__terminate'''}}
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 10:24, 31 July 2016


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