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

Ride

Discussion in 'Development' started by SuperXingKong, Mar 5, 2017.

  1. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    Can I add a function make players ride pig(or other entities);)
    P.S. My English is not very well.:facepalm:
     
  2. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    PHP:
    public function ride($player$entity){
     
    //////////
    }
     
  3. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    you could try linking the entities and setting the data flag DATA_FLAG_RIDING
     
    SuperXingKong likes this.
  4. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    Thx.;)I will try it soon.
     
  5. SuperXingKong

    SuperXingKong Spider Jockey

    Messages:
    28
    GitHub:
    SuperXingKong
    And can you give me an example?...:facepalm:I am so stupid
     
  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.