Solved how to link an armor stand to the player

  • 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.

saad3mad

Member
Mar 29, 2023
3
0
1
18
EDIT: i am trying to make an armor stand ride the player and be able to move with the player,
so when the player move his body the armor stand above it move to and be connected to the body area the "chest"

the skript i used make the armor stand teleport to the player so its a bit laggy and does not look the way i want it to be
 
Last edited:
EDIT: i am trying to make an armor stand ride the player and be able to move with the player,
so when the player move his body the armor stand above it move to and be connected to the body area the "chest"

the skript i used make the armor stand teleport to the player so its a bit laggy and does not look the way i want it to be

I’m using the teleport armor stand to the player but setting up a teleportation vector. This way I can make the armor stand teleport to the player with a small distance specified in the vector including teleportation to the head, legs and so on, but it is necessary to calculate the coordinates and test.

I have teleportation going on every tick, and it may be a little lagg, but I’m fine. Probably a powerful hosting.

Code:
on right click:
   if targeted entity is armor stand:
       set {armorstand::%player%} to armor stand

every 1 tick:
   loop all players in "world":
       teleport {armorstand::%loop-player%} to loop-player's location ~~ vector(0.0,1.2,0.0)

If that’s what you need to look at the code and get what you need from it.
[doublepost=1680464354,1680464265][/doublepost]
EDIT: i am trying to make an armor stand ride the player and be able to move with the player,
so when the player move his body the armor stand above it move to and be connected to the body area the "chest"

the skript i used make the armor stand teleport to the player so its a bit laggy and does not look the way i want it to be
I think no solution to make "insert armor stand to chest". I think this isn't impossible.
 
thank you, i tried to make the armor stand ride the player and that worked perfectly i had to do a little twists and i got what i want to but thanks tho
 
Status
Not open for further replies.