I require helps on push/thrust

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jul 28, 2020
10
0
1
31
ut7j1u
I was looking for a jump pad for my server which I want when player step on it it push player to a specific location(I tried (direction from player to location of {examplevariable}) but it doesn't seem to be what I want). What I want is when player step on it it pushes player to specific cordinate like the {examplevariable} one, but not the direction, just push player to that location.
Code:
on step on green glazed terracotta:
    set {greenteleport} to location at (265, 108, 459)
    push player (direction from player to location of {greenteleport}) at speed 5
 
Code:
on step on green glazed terracotta:
    push player forward at speed 5
    push player up at speed 2

edit:
i didn't notice the push to a variable. ill remake it soon
[doublepost=1601903939,1601902517][/doublepost]
Code:
on step on green glazed terracotta:
    set {_heading} to direction from player to location of {greenteleport}
    push player {_heading} at speed 5
    push player up at speed 2
 
Status
Not open for further replies.