How to launch player where they are looking

Started by JoeWantsABrew on

Topic category: Help with MCreator software

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to launch player where they are looking

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"

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined May 2021
Points:

User statistics:

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

not sure how i would do that?

 

Joined May 2021
Points:

User statistics:

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

nvm i tried it. doesnt work very well

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.