animationSourcePhase: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
||
Line 26: | Line 26: | ||
| [[animateSource]], [[animationNames]], [[animate]], [[animationPhase]], [[animateDoor]], [[doorPhase]] | | [[animateSource]], [[animationNames]], [[animate]], [[animationPhase]], [[animateDoor]], [[doorPhase]] | ||
| | | | ||
}} | }} | ||
Revision as of 10:23, 18 January 2021
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:
_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
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