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

Invisible Projectile

Discussion in 'Development' started by NickteeChunky, May 18, 2020.

  1. NickteeChunky

    NickteeChunky Witch

    Messages:
    64
    GitHub:
    nickteechunky
    How would I make a projectile invisible, in my case (armor stand).

    Attempt:

    PHP:
                    $pk = new AddActorPacket();
                    
    $pk->entityRuntimeId Entity::$entityCount;
                    
    $pk->type 61;
                    
    $pk->position $player->asVector3();
                    
    $pk->motion = new Vector3(000);
                    
    $pk->yaw 0;
                    
    $pk->pitch 0;
                    
    $pk->metadata = [Entity::DATA_FLAGS => [Entity::DATA_TYPE_LONG<< Entity::DATA_FLAG_INVISIBLE]];
                    
    $player->sendDataPacket($pk);
     
    Last edited: May 18, 2020
  2. NickteeChunky

    NickteeChunky Witch

    Messages:
    64
    GitHub:
    nickteechunky
  3. Heisenburger69

    Heisenburger69 Silverfish

    Messages:
    16
    GitHub:
    heisenburger69
  4. NickteeChunky

    NickteeChunky Witch

    Messages:
    64
    GitHub:
    nickteechunky
    Oh, that makes more sense. Thanks for the explanation. :)
     
  5. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
  6. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    why don't set scale to 0?
     
  7. Heisenburger69

    Heisenburger69 Silverfish

    Messages:
    16
    GitHub:
    heisenburger69
    Protocol changes aren't documented and BC breaks are possible so you'll have trouble updating to newer releases
     
  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.