1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Spawn armor stand right in front of player

Discussion in 'Skript' started by PatoFrango, Jul 23, 2019.

Thread Status:
Not open for further replies.
  1. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Let's try with pictures.

    upload_2019-7-24_23-24-36.png

    This is what happens when I try to spawn it "in front of the player" This is what I want to achieve:

    upload_2019-7-24_23-24-53.png

    It's CLOSER! WOAH!
     

    Attached Files:

  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
  3. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Oh my god... dude, just forget it. ChocoAura got what I meant, but I've tried to tell you that it's impossible to manually check EVERY possible direction the player's facing. A player's yaw doesnt have only 2, 3 or 4 values. It has many of them. And I want the armor stand to be placed EXACTLY towards where the player is facing, so much probably there wouldn't even be any checks. But seriously though, just move on from this post. I've thanked you for your help and time and I truly do, but right now I just need to find an answer as quickly as possible and get other things that I'm doing done.
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    314
    Likes Received:
    21
    you really need to develop your logic while programming... i gave you straight answer spoonfeed paste ready code but sure i will move on from this post. see you around.
     
  5. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Your answer is still far away from what I asked. You even admitted that you didn't know what I was asking for, so you don't need to get all triggered just cause your answer isn't actually being helpful. I was polite and I thanked you many times for your time, and I only asked you to move on because you really weren't getting what I meant. It's no use to keep trying as I've said I can't explain it any better. I'm not calling you stupid or anything close, I'm just saving you time as I've seen you're also answering other user's questions.
    As for the "developing my logic while programming", you really don't know me. You can go check the times that I've answered people's questions and then come back telling me the response wasn't logic. I've actually "spoon-fed" people code and I don't mind doing it as long as they understand how it was done and learn something from it.

    Anyway, I'm still open for answers everybody. Any ideas? At all?
     
  6. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    Use vectors (look at the Skript docs to see how)
     
  7. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Thank you for your answer. I’ve thought of that and I’ve tried many different things but I can’t seem to manage to get HALF of the distance from two points (for example) and then set a new location to that point. I could use the vector length expression, but then again how would I actually set the location... Agh.
     
  8. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    Use the vector length (divide it by 2)
     
  9. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    Code (Text):
    1. location 0.1 in front of player
     
    • Winner Winner x 1
    • Useful Useful x 1
  10. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Thanks so much. 0.5 instead of 0.1 did it for me. Much obliged.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...