Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ExprVectorYawPitch" issues #877

Closed
jaylawl opened this issue Sep 20, 2017 · 5 comments
Closed

"ExprVectorYawPitch" issues #877

jaylawl opened this issue Sep 20, 2017 · 5 comments
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Comments

@jaylawl
Copy link
Contributor

jaylawl commented Sep 20, 2017

I'm trying this:
add a random number between -1 and 1 to vector yaw of victim's vector

https://snag.gy/RoWE28.jpg

Syntax learned from http://bensku.github.io/Skript/docs.json. I've had similar issues when messing the new vectors before. Always things that should work to common sense, but produce a similar parser message.

This works however:
broadcast "%vector yaw of victim's vector%"
Curious enough, the returned value is always a yaw between 340 and 345, no matter which direction the entity is going.

@bensku
Copy link
Member

bensku commented Sep 20, 2017

Adding scalar to vector is not supported currently.

@bensku bensku added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Sep 20, 2017
@jaylawl
Copy link
Contributor Author

jaylawl commented Sep 20, 2017

The below is straight copied from docs.json. So these examples were added prematurely? Just trying to understand here. In that case, what else would i add?

add 45 to vector yaw of {_v}
subtract 45 from vector pitch of {_v}

@TheBentoBox
Copy link
Member

It may be because you're doing it all in one line. Try splitting it so you get the victim's location vector on a different line and see if it helps:

set {_v} to victim's vector
add (random number between -1 and 1) to vector yaw of {_v}

@bensku
Copy link
Member

bensku commented Sep 20, 2017

Hm, the examples seem to be just plain wrong here. But I would rather implemnt this feature (or fix it) instead or just editing docs.

@bensku bensku added this to the 2.3 milestone Sep 20, 2017
@bensku bensku removed this from the 2.3 milestone Mar 2, 2019
@TPGamesNL
Copy link
Member

Fixed in #4064

@TPGamesNL TPGamesNL added the completed The issue has been fully resolved and the change will be in the next Skript update. label Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

No branches or pull requests

4 participants