Aller au contenu
  • 0

Lancer une tnt sur un joueur


Question

Posté(e)

Bonjour je voudrais lancer une tnt sur un joueur visé, là sur le targeted player

on rightclick with tnt:
   if name of player's tool is "&8&lTNT":
       set {_wait} to difference between {bomberman.%player%.lastused} and now
   if {_wait} is less than {@cooldown}:
       message "&d[&7IriEffect&d]&7 Vous devez attendre 12 secondes"
   else:
       if targeted entity is a player:
           make the player shoot a tnt
           message "&d[&7IriEffect&d]&7 Vous avez lancer une bombe sur %targeted player%" to player
           set {bomberman.%player%.lastused} to now
           stop
       else:
           message "&d[&7IriEffect&d]&7 Aucun joueur ciblé" to player
           stop

Et quand je fais : "at targeted player" ça ne marche pas.

Merci d'avance !

2 réponses à cette question

Messages recommandés

  • 0
Posté(e)

spawn 1 primed tnt at player

push spawned entity in direction of the player at speed 0.2

push spawned entity upward at speed 0.2

ça envoie la tnt dans la direction du joueur !

 

Sinon je pense que tu peux faire:

spawn 1 primed tnt at player

push spawned entity to targeted entity at speed 0.2

push spawned entity upward at speed 0.2

  • J'aime 1
  • 0
Posté(e)
spawn 1 primed tnt at player

push spawned entity in direction of the player at speed 0.2

push spawned entity upward at speed 0.2

ça envoie la tnt dans la direction du joueur !

 

Sinon je pense que tu peux faire:

spawn 1 primed tnt at player

push spawned entity to targeted entity

push spawned entity upward at speed 0.2

Merci !

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