How to launch player where they are looking

Started by JoeWantsABrew on Thu, 06/03/2021 - 19:24

Topic category: Help with MCreator software

Last seen on 16:16, 29. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to launch player where they are looking
Thu, 06/03/2021 - 19:24

I am making a mod where people get BNHA-styled quirks, (i have made 7 quirks so far) i have this one problem though, how would i launch the player in the direction they are looking in? this is going to be a secondary ability for a quirk called "air cannon"

Last seen on 23:41, 3. Jun 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ah I see you're a fellow…
Thu, 06/03/2021 - 23:08

ah I see you're a fellow weeb

id have to tell you to just give the player blast protection for 1 second then spawn an explosion opposite direction of the players view

Last seen on 16:16, 29. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
not sure how i would do that…
Fri, 06/04/2021 - 08:20

not sure how i would do that?

 

Last seen on 16:16, 29. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
nvm i tried it. doesnt work…
Fri, 06/04/2021 - 08:35

nvm i tried it. doesnt work very well

Last seen on 23:51, 28. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
https://imgur.com/7lMZibh  …
Sun, 06/27/2021 - 12:07

https://imgur.com/7lMZibh

 

In my project, I have this procedure(shown in link) that dashes towards the look direction if the player right clicks with a specific type of sword in hand. The big part of the procedure with lots of math is what you need, also the local variable too. this part of the procedure was made by someone in the MCToolKit Discord server.

 

The local variable I added, is to control the dashing speed.