animationSourcePhase: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 96062 by Pennyworth_bi_wiki on 2016-06-04T23:29:27Z) |
Lou Montana (talk | contribs) m (Text replacement - "{{HashLink" to "{{Link") |
||
(37 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |game1= arma3 | ||
|1.58 | |version1= 1.58 | ||
| | |gr1= Animations | ||
| | |descr= 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 {{Link|#Example 2}}). | ||
| | |s1= object [[animationSourcePhase]] source | ||
| | |p1= object: [[Object]] | ||
| [[ | |p2= source: [[String]] | ||
|r1= [[Number]] | |||
|x1= < | |x1= <sqf>private _phase = house animationSourcePhase "Door_1_source";</sqf> | ||
|x2= <sqf> | |||
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"); | |||
</sqf> | |||
| [[animateSource]] | |seealso= [[animateSource]] [[animationNames]] [[animate]] [[animationPhase]] [[animateDoor]] [[doorPhase]] | ||
}} | }} | ||
Latest revision as of 17:43, 4 January 2023
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:
- 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
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