animationSourcePhase: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|" to "|")
m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=")
Line 8: Line 8:
| 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)
| 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)


| object '''animationSourcePhase''' source
|s1=  object '''animationSourcePhase''' source


|p1= object: [[Object]]
|p1= object: [[Object]]

Revision as of 23:46, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Animations

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

See also:
animateSourceanimationNamesanimateanimationPhaseanimateDoordoorPhase

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