Solved Armorstand problem

  • 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 community!

    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.

NewbyZ

Member
Jan 26, 2017
75
2
0
How can I generate an armor stand that does not rotate? Regardless of whether the victim is looking to one side or the other...
Or how can I rotate an armorstand to 0.0f? Like this:
681b34485a8cd38b652cf506543c6d78.png


code_language.skript:
set {_loc} to location of victim
spawn an armor stand at {_loc}

When it generates the armorstand, it is in the direction the victim was looking at before dying.
 
You can either create a new clean location at the victim:

code_language.skript:
set {_loc} to location(victim's x-loc, victim's y-loc, victim's z-loc, victim's world)
# you could also just try "location at victim", not sure if that's different than "location of"

change the yaw/pitch manually:

code_language.skript:
set {_loc} to location of victim
set {_loc}'s yaw to 0
set {_loc}'s pitch to 0

or change the rotation of the armor stand after spawning it directly using NBT manipulation with SkStuff:

code_language.skript:
add "{Rotation:[0.0f,0.0f]}" to NBT of last spawned armor stand
 
  • Like
Reactions: NewbyZ
I love u:emoji_heart_eyes:

But this doesn't work :emoji_frowning:
7936ba31b689e4fe8ffcaa9d02eedd4c.png
 
Last edited by a moderator:
Then just use the first method, it uses a function built into Skript so it should work
 
Status
Not open for further replies.