BIS fnc ambientAnimCombat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:


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



Revision as of 11:25, 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