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

Call to undefined method setDataProperty()

Discussion in 'Development' started by Optima, Feb 3, 2019.

  1. Optima

    Optima Spider

    Messages:
    6
    Hi my friends! Can you help me please?)

    Code:

    Code:
    $player->setDataProperty(Entity::DATA_RIDER_SEAT_POSITION, Entity::DATA_TYPE_VECTOR3F, [0, $player->getEyeHeight() + ($entity->getEyeHeight() / 2), 0]); 

    Where is the problem?

    PocketMine-MP 3.5.9 for Minecraft: Bedrock Edition v1.8.0 (protocol version 313)
     
  2. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Not sure but I think it’s this
    PHP:
    $player->getDataPropertyManager()->setPropertyValue(keytypevalue);
     
  3. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
    Call to undefined method pocketmine\Player::setDataProperty()
    Means you're calling a function that doesn't exist.
     
    xXNiceAssassinlo YT likes this.
  4. Optima

    Optima Spider

    Messages:
    6
    Thanks
     
  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.