Interface: TeleportOptions
Beta
Contains additional options for teleporting an entity.
Examples
Properties
checkForBlocks?
optionalcheckForBlocks?:boolean
Beta
Remarks
Whether to check whether blocks will block the entity after teleport.
dimension?
optionaldimension?:Dimension
Beta
Remarks
Dimension to potentially move the entity to. If not specified, the entity is teleported within the dimension that they reside.
facingLocation?
optionalfacingLocation?:Vector3
Beta
Remarks
Location that the entity should be facing after teleport.
forceProvidedPositionOnDimensionChange?
optionalforceProvidedPositionOnDimensionChange?:boolean
Beta
keepVelocity?
optionalkeepVelocity?:boolean
Beta
Remarks
Whether to retain the entities velocity after teleport.
rotation?
optionalrotation?:Vector2
Beta
Remarks
Rotation of the entity after teleport.
