BIS fnc ambientAnimCombat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - "| Nothing |x1=" to "|r1= Nothing |x1=")
Line 36: Line 36:
|p5= behaviour: [[String]] - (Optional, default "COMBAT") behaviour the unit should go to, when freed. Default "COMBAT"
|p5= behaviour: [[String]] - (Optional, default "COMBAT") behaviour the unit should go to, when freed. Default "COMBAT"


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[_unit, "STAND", "FULL", { ([[player]] [[distance]] [[Magic Variables#this|_this]]) < 5 }] [[call]] [[BIS_fnc_ambientAnimCombat]];</code>
|x1= <code>[_unit, "STAND", "FULL", { ([[player]] [[distance]] [[Magic Variables#this|_this]]) < 5 }] [[call]] [[BIS_fnc_ambientAnimCombat]];</code>

Revision as of 09:56, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Ambient

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object - Unit where the animations will be played
animationSet: String - (Optional, default "STAND") The animation set to play. Possible values are:
  • "STAND"
  • "STAND_IA"
  • "SIT_LOW"
  • "KNEEL"
  • "LEAN"
  • "WATCH"
  • "WATCH1"
  • "WATCH2"
equipmentLevel: String - (Optional, default "RANDOM") The equipment level of the unit. Possible values are:
  • "NONE"
  • "LIGHT"
  • "MEDIUM"
  • "FULL"
  • "ASIS"
  • "RANDOM"
condition: Code or String - (Optional, default { false }) condition that if true frees the unit from the animation loop
behaviour: String - (Optional, default "COMBAT") behaviour the unit should go to, when freed. Default "COMBAT"
Return Value:
Nothing

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