animateDoor: Difference between revisions
Jump to navigation
Jump to search
Dr Eyeball (talk | contribs) m (see also) |
Killzone Kid (talk | contribs) (example) |
||
Line 20: | Line 20: | ||
|p4= phase: [[Number]] |= PARAMETER4 | |p4= phase: [[Number]] |= PARAMETER4 | ||
|p5= now: [[Boolean]] | |p5= now: [[Boolean]] When [[true]] and phase is either phase 0 or 1, door will change phase instantaneously. |= PARAMETER5 | ||
| [[Nothing]] |= RETURNVALUE | | [[Nothing]] |= RETURNVALUE | ||
|x1= <code>heli animateDoor ["doors1", 1, false]</code>|= EXAMPLE1 | |x1= <code>heli [[animateDoor]] ["doors1", 1, [[false]]];</code>|= EXAMPLE1 | ||
|x2= Open left front door on Ifrit instantly:<code>ifrit [[animateDoor]] ["Door_LF", 1, [[true]]];</code>|= EXAMPLE2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[doorPhase]] |= SEEALSO | | [[doorPhase]], [[animate]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 15:42, 7 February 2014
Description
- Description:
- Process animation of door on vehicle. Animation is defined in config file. Wanted animation phase is set to phase.
- Groups:
- Uncategorised
Syntax
- Syntax:
- object animateDoor [doorname, phase, now]
- Parameters:
- object: Object
- [doorname, phase, now]: Array
- doorname: String
- phase: Number
- now: Boolean When true and phase is either phase 0 or 1, door will change phase instantaneously.
- Return Value:
- Nothing
Examples
- Example 1:
heli animateDoor ["doors1", 1, false];
- Example 2:
- Open left front door on Ifrit instantly:
ifrit animateDoor ["Door_LF", 1, true];
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