animationSourcePhase

From Bohemia Interactive Community
Revision as of 18:43, 4 January 2023 by Lou Montana (talk | contribs) (Text replacement - "{{HashLink" to "{{Link")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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).
Groups:
Animations

Syntax

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

Examples

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

Additional Information

See also:
animateSource animationNames animate animationPhase animateDoor doorPhase

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