Description
This is the component provided by the Rolldoor Controller block.
Component name: os_rolldoorcontroller
.
This is the component provided by the Rolldoor Controller block.
Component name: os_rolldoorcontroller
.
getHeight():number
returns the height/end position of the door
getPosition():number
returns the current position of the door
close([password:string]):boolean
moves the door to end position
open([password:string]):boolean
moves the door to position 0
toggle([password:string]):boolean
toggles the door (closes if its at position 0, opens otherwise)
isMoving():boolean
guess it
setPosition(targetPosition:number[, password:string]):number
moves the door to the provided position [range: 0 - height]
setSpeed(moveSpeed:number[, password:string]):number
sets the move speed of the rolldoor, returns the new speed value [range: 0.1 - 3]
setPassword(newPassword:string[, oldPassword:string]):boolean
sets/resets the rolldoor password