Aller au contenu
  • 0

Tour d'archer


Question

Posté(e)

Bonjour, je voudrais créer un script qui fasse qu'une fleche est tirée depuis une variable "location" du style {archer.location} sur un joueur dans le périmètre, mais j'arrive pas a mis prendre..

 

command /archerset:
   permission: ster.admin
   executable by: players
   trigger:
       set {archer.location} to location of player 
command /archershoot:
   permission: ster.admin
   executable by: players
   trigger:
       shoot a arrow from the {archer.location}
       # [(at|with) (speed|velocity) %number%] [%direction%]
       # [(at|with) (speed|velocity) %number%] [%direction%]

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour, je voudrais créer un script qui fasse qu'une fleche est tirée depuis une variable "location" du style {archer.location} sur un joueur dans le périmètre, mais j'arrive pas a mis prendre..

 

command /archerset:
   permission: ster.admin
   executable by: players
   trigger:
       set {archer.location} to location of player
command /archershoot:
   permission: ster.admin
   executable by: players
   trigger:
       shoot a arrow from the {archer.location}
       # [(at|with) (speed|velocity) %number%] [%direction%]
       # [(at|with) (speed|velocity) %number%] [%direction%]

 

Je n'ai pas compris ta demande ...

  • 0
Posté(e)

En gros, un canon qui tire sur un rayon de 10 blocks.

 

command /archerset:
   permission: ster.admin
   executable by: players
   trigger:
       set {archer.location} to location of player

command /archershoot:
   permission: ster.admin
   executable by: players
   trigger:
       spawn arrow at {archer.location}
       make last spawned entity home towards player normally
       shoot arrow from player at speed 2 in direction of player

Ce code ne devrait pas te déplaire :)

  • 0
Posté(e)

Oups, excuse moi, j'ai oublier dans moins de 10 blocks :p

command /archerset:
   permission: ster.admin
   executable by: players
   trigger:
       set {archer.location} to location of player

command /archershoot:
   permission: ster.admin
   executable by: players
   trigger:
       if distance between {archer.location} and player is less than 10:
           spawn arrow at {archer.location}
           make last spawned entity home towards player normally
           shoot arrow from player at speed 2 in direction of player

 

Ps: Si je t'ai aidé, met un j'aime :p

  • J'aime 2
  • 0
Posté(e)
command /archerset:
   permission: ster.admin
   executable by: players
   trigger:
       set {archer.location} to location of player

command /archershoot:
   permission: ster.admin
   executable by: players
   trigger:
       if distance between {archer.location} and player is less than 10:
           spawn arrow at {archer.location}
           make last spawned entity home towards player normally
           shoot arrow from {archer.location} at speed 2 in direction of player

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