#launching the player

1 messages · Page 1 of 1 (latest)

tranquil karma
#

hey! im new to skript! does anyone know how to launch the player in the direction theyre facing only horizontally? (they face a direction and are launched horizontally in that direction to the degree, but the vertical the of launch is constant)

"push player in horizontal direction of player with speed x" only seemed to do this per 45 degree angle... i think?

suggestions?

indigo sentinel
tranquil karma
#

that didnt seem to work either :p

acoustic hemlock
#

Get a vector from players yaw and pitch

#

Then set the y component to 0

scarlet iron
indigo sentinel
tranquil karma
#

i dont know either lmao

#

i tested it

indigo sentinel
#

If that doesn't work for some reason, you can do something similar to what x8ight said:
push player (vector from yaw (yaw of player) and pitch 0) at speed x

scarlet iron
#

bro's like on skript 2.4 using no addons

indigo sentinel
#

Pretty self explanatory code just launches the player at a vector from their horizontal facing (their yaw) and straight forward (0 pitch)

tranquil karma
#

that still doesnt work...

#

erm!

#

its probably my faul

#

t

indigo sentinel
#

Blud wat kinda skript version and addons are u using

tranquil karma
#

er

#

i'll just send the plugins

acoustic hemlock
#

Do /sk info

#

And delete skquery

tranquil karma
#

is this what you wanted

scarlet iron
#

why does bro have so many ancient addons

indigo sentinel
#

Y do u have so many skript addons

#

Wut are they even needed for

tranquil karma
#

i dont know i didnt add them 😭

indigo sentinel
#

Yea you mighr wanna uninstall the ones u don't need or the abandoned/outdated ones cuz they can mess with your code

tranquil karma
#

i mean

#

everything seems to work

#

its just

indigo sentinel
#

Definitely keep skbee and maybe reflect if you use it

tranquil karma
#

it only seems to launch me

#

in 45

#

degre

#

e

#

increments

tranquil karma
indigo sentinel
#

It should be working

#

The addons are the only possible cause of the problem i see

tranquil karma
#

hmm

indigo sentinel
tranquil karma
#

yeah i believe you

#

its probably my fault