1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Stopping Projectile

Discussion in 'Development' started by Dyntes, Oct 3, 2020.

  1. Dyntes

    Dyntes Spider Jockey

    Messages:
    48
    GitHub:
    Dyntes
    Do anyone know how to stop/resume a/all projectiles? This can help me improve my plugin devlopment...
     
  2. Kkora

    Kkora Baby Zombie

    Messages:
    189
    GitHub:
    shisui203
    delay the server :D
     
  3. Dyntes

    Dyntes Spider Jockey

    Messages:
    48
    GitHub:
    Dyntes
    Is delay the server will only stop the projectiles or all of the entity?
     
  4. Kkora

    Kkora Baby Zombie

    Messages:
    189
    GitHub:
    shisui203
    it was a joke. Delay it will make your server "freeze", nothing work
     
  5. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    Check all entities in all the levels, then just set them immobile if they are instance of Projectile
     
  6. Dyntes

    Dyntes Spider Jockey

    Messages:
    48
    GitHub:
    Dyntes
    1601855170279.png Can this function use to a projectile?
     
    GamakCZ likes this.
  7. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    Sorry, this won't work as dylan said it. Save current motion (Entity->getMotion()), then set it to new Vector(0, 0, 0) and to start it again set the old motion to the entity
     
    Dyntes likes this.
  8. Dyntes

    Dyntes Spider Jockey

    Messages:
    48
    GitHub:
    Dyntes
    LoL that will be like stop the time and resume it again...
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.