Aller au contenu
  • 0

ArmorStand


Question

Posté(e)

Bonjour, j'ai un problème avec les armor stands, je veux faire apparaitre et disparaître un armor stand mais je n'arrive pas à le supprimer après un certain temps :(

 

command /AS:
   trigger:
       make player execute command "summon ArmorStand ~ ~ ~ {NoBasePlate:1b,ShowArms:1b,CustomName:HUD,CustomNameVisible:1,Rotation:[1f],Equipment:[{},{},{},{},{id:20,Count:1b}],Pose:{RightArm:[242f,0f,37f]}}"
       wait 10 second
       send "Fini" to player    #Pour voir si le wait fonctionne
       kill spawned entity        #La partie qui ne fonctionne pas et j'ai essayé beaucoup d'alternative mais toujours rien

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Skript ne sais pas qu'un armor stand a été spawné car tu le fais via une commande. Tu peux essayer avec l'évent "on spawn:"

Non testé:

on spawn of armor stand:
   if name of event-entity is "HUD":
       wait 10 seconds
       kill event-entity
command /AS:
   trigger:
       make player execute command "summon ArmorStand ~ ~ ~ {NoBasePlate:1b,ShowArms:1b,CustomName:HUD,CustomNameVisible:1,Rotation:[1f],Equipment:[{},{},{},{},{id:20,Count:1b}],Pose:{RightArm:[242f,0f,37f]}}"

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.