setPlayerDirection: Set a player's direction

Description Usage Arguments Details Note See Also Examples

View source: R/setPlayerOrientation.R

Description

Set a player's direction vector (x,y,z)

Usage

1
setPlayerDirection(x, y, z, id = NULL)

Arguments

x

east/west direction

y

up/down direction

z

north/south direction

id

Player or entity ID

Details

(x, y, z) define a unit vector to which the player will now point.

Note

Only works with RaspberryJuice version 1.11 or later.

See Also

getPlayerDirection(), setPlayerRotation(), setPlayerPitch(), setPlayerPos()

Examples

1
2
3
4
5
6
## Not run: 
mc_connect()
getPlayerIds()
setPlayerDirection(45, 355)

## End(Not run)

kbroman/miner documentation built on Jan. 26, 2021, 8:14 p.m.