Solved About ArmorStand

  • 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.
itd be helpful if you show what you tried with skript-mirror. it would be something like this
Java:
armorStand.setLeftArmPose(new EulerAngle(0.00, 0.00, 0.00));

this is straight java but it should be very similar in skript-mirror
 
If you couldn't get it working you did it wrong.
code_language.skript:
on script load:
  import "org.bukkit.util.EulerAngle"
    
function setStandAngle(stands: living entities, x: number, y: number, z: number, pose: string):
  set {_angle} to new {EulerAngle}({_x}, {_y} and {_z})
  loop {_stands::*} where ["%entity input%" is "armor stand"]:
    try loop-value.."set%{_pose}%Pose"({_angle});
 
If you couldn't get it working you did it wrong.
code_language.skript:
on script load:
  import "org.bukkit.util.EulerAngle"
  
function setStandAngle(stands: living entities, x: number, y: number, z: number, pose: string):
  set {_angle} to new {EulerAngle}({_x}, {_y} and {_z})
  loop {_stands::*} where ["%entity input%" is "armor stand"]:
    try loop-value.."set%{_pose}%Pose"({_angle});

thx! it's working
and a question.. what's the "EulerAngle" i can't stand it
before i tries "getLeftArmPose().setX(1)" but it's not working
 
thx! it's working
and a question.. what's the "EulerAngle" i can't stand it
before i tries "getLeftArmPose().setX(1)" but it's not working
EulerAngle is what the spigot method takes, don't ask me why I don't know much about it.
 
its basically a 3d angle. the 3 args are the angles/rotation for the x, y, and z axis (in radians).
 
Status
Not open for further replies.