BIS fnc doorClose: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed duplicated argument error)
m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


|game1= arma3
|game1= arma3
|version1= 1.00
|version1= 1.00


<!--|exec= server|=-->
|gr1= Scripts


|arg= global
|arg= global
Line 13: Line 12:
|descr=Close a door with an animated doorhandle.
|descr=Close a door with an animated doorhandle.


|mp= Effect is global
|s1= [building, doorAnimation, handleDownAnimation, doorHandleUpAnimation, animationPhase] call [[BIS_fnc_doorClose]]
 
|s1= [building, doorAnimation, handleDownAnimation, doorHandleUpAnimation, animationPhase] [[call]] [[BIS_fnc_DoorClose]]


|p1=building: [[Object]] - (Optional, default [[objNull]]) Building
|p1=building: [[Object]] - (Optional, default [[objNull]]) Building
Line 29: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[building,"doorAnimation","animationUp","animationDown",1] [[call]] [[BIS_fnc_DoorClose]];</code>
|x1= <code>[building,"doorAnimation","animationUp","animationDown",1] [[call]] [[BIS_fnc_doorClose]];</code>
 
|exec= call


|seealso= [[animate]] [[animateSource]] [[BIS_fnc_Door]]
|seealso= [[animate]] [[animateSource]] [[BIS_fnc_door]]
}}
}}

Revision as of 19:18, 20 June 2021

Hover & click on the images for description

Description

Description:
Close a door with an animated doorhandle.
Execution:
call
Groups:
Scripts

Syntax

Syntax:
[building, doorAnimation, handleDownAnimation, doorHandleUpAnimation, animationPhase] call BIS_fnc_doorClose
Parameters:
building: Object - (Optional, default objNull) Building
doorAnimation: String - (Optional, default "") Name of the door animation
handleDownAnimation: String - (Optional, default "") Animation source of handle down
doorHandleUpAnimation: String - (Optional, default "") Animation source of handle up
animationPhase: Number - (Optional, default 0) Value from 0-1
Return Value:
Nothing

Examples

Example 1:
[building,"doorAnimation","animationUp","animationDown",1] call BIS_fnc_doorClose;

Additional Information

See also:
animate animateSource BIS_fnc_door

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