Learn R Programming

miner (version 0.2.2)

setPlayerDirection: Set a player's direction

Description

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

Usage

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.

See Also

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

Examples

Run this code
# NOT RUN {
mc_connect()
getPlayerIds()
setPlayerDirection(45, 355)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab