animateDoor: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "createVehicle/vehicles" to "Arma 3: createVehicle/vehicles") |
Lou Montana (talk | contribs) m (Text replacement - "};</syntaxhighlight>" to "}; </syntaxhighlight>") |
||
Line 26: | Line 26: | ||
animPeriod = 1.6; | animPeriod = 1.6; | ||
}; | }; | ||
};</syntaxhighlight> | }; | ||
</syntaxhighlight> | |||
To animate doors or other sources that have "user" controller, use [[animate]] command, or even better, [[animateSource]] (recommended). Sources with "hit" controller can be animated with [[setHitPointDamage]] command applied to the name contained in hitpoint property. For availability of animation sources and their controller types see: [[Arma 3: createVehicle/vehicles]] | To animate doors or other sources that have "user" controller, use [[animate]] command, or even better, [[animateSource]] (recommended). Sources with "hit" controller can be animated with [[setHitPointDamage]] command applied to the name contained in hitpoint property. For availability of animation sources and their controller types see: [[Arma 3: createVehicle/vehicles]] | ||
Revision as of 09:52, 25 May 2021
Description
- Description:
- Description needed
- Groups:
- Animations
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- [doorname, phase, instant]: Array
- doorname: String
- phase: Number
- instant: Boolean (When true and phase is either 0 or 1, door will change phase instantaneously)
- Return Value:
- Return value needed
Examples
- Example 1:
Taru animateDoor ["Door_1_source", 1];
- Example 2:
- Open left front door on Ifrit instantly:
Ifrit animateDoor ["Door_LF", 1, true];
Additional Information
- See also:
- doorPhasesetFaceAnimationanimateanimationPhaseanimateSourceanimationSourcePhaseanimationNames
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