animationSourcePhase

From Bohemia Interactive Community
Revision as of 16:00, 3 September 2019 by Lou Montana (talk | contribs) (Text replacement - "| A3 |= Game " to "| arma3 |Game name= ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Arma 3 version 1.58
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.58

Description

Description:
Returns current animation phase of given source. Similar to animationPhase or doorPhase but designed to complement animateSource. This command could be used to obtain relative turret direction and gun elevation on a vehicle (see Example 2)

Syntax

Syntax:
object animationSourcePhase source
Parameters:
object: Object
source: String
Return Value:
Number

Examples

Example 1:
_phase = house animationSourcePhase "Door_1_source";
Example 2:
_mainturretDirection = deg (_marshall animationSourcePhase "mainturret"); // relative to Marshall direction _maingunElevation = deg (_marshall animationSourcePhase "maingun"); _obsturretDirection = deg (_marshall animationSourcePhase "obsturret"); // relative to main turret direction _obsgunElevation = deg (_marshall animationSourcePhase "obsgun");

Additional Information

Multiplayer:
-
See also:
animateSourceanimationNamesanimateanimationPhaseanimateDoordoorPhase

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section