Thread: Height Command

Results 1 to 3 of 3
  1. #1 Height Command 
    Registered Member
    Join Date
    Feb 2016
    Posts
    18
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Due to many ladders not working, I was thinking I could add a command that's something like:

    if (playerCommand.equalsIgnoreCase("up")) {
    c.getPA().startTeleport( getZ+1 );
    }

    Now of course that wouldn't work like that but the point is I just want it to move the player up one height level.

    Example:
    You are standing at coords, 3235,2496, 0 and you type ::up and you go to 3235, 2496, 1.

    Any ideas?
    Thanks!
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Nov 2012
    Age
    25
    Posts
    242
    Thanks given
    250
    Thanks received
    62
    Rep Power
    89
    Well it's pretty self-explanatory.

    I don't know your methods, but it should be something like that based on what you said:
    Code:
                        if (playerCommand.equalsIgnoreCase("up")) {
                            c.getPA().startTeleport(c.getX(), c.getY(), c.getZ() + 1);
                        }
    If that height variable isn't recognized, it would probably be
    Code:
                        if (playerCommand.equalsIgnoreCase("up")) {
                            c.getPA().startTeleport(c.getX(), c.getY(), c.getHeight() + 1);
                        }
    Hope this helps.
    Quote Originally Posted by Therandomkid View Post
    if you wanna hate just remember i fucked your mom
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2016
    Posts
    18
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Venn View Post
    Well it's pretty self-explanatory.

    I don't know your methods, but it should be something like that based on what you said:
    Code:
                        if (playerCommand.equalsIgnoreCase("up")) {
                            c.getPA().startTeleport(c.getX(), c.getY(), c.getZ() + 1);
                        }
    If that height variable isn't recognized, it would probably be
    Code:
                        if (playerCommand.equalsIgnoreCase("up")) {
                            c.getPA().startTeleport(c.getX(), c.getY(), c.getHeight() + 1);
                        }
    Hope this helps.
    Thanks! I will try it now

    EDIT: Works!!!
    Just changed getHeight to getHeightLevel +1

    Code:
       if (playerCommand.equalsIgnoreCase("up")) {
                 c.getPA().startTeleport2(c.getX(), c.getY(), c.heightLevel + 1);
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. ::teleport command height?
    By strongbow94 in forum Help
    Replies: 0
    Last Post: 08-13-2011, 03:26 AM
  2. [Delta] A tele command with height
    By Jesse in forum Requests
    Replies: 4
    Last Post: 04-23-2010, 05:04 AM
  3. Height level command help
    By Hdthree in forum Help
    Replies: 5
    Last Post: 05-01-2009, 01:00 AM
  4. Height command
    By Rune Arc in forum Configuration
    Replies: 2
    Last Post: 09-03-2008, 11:54 PM
  5. Console Commands
    By ZeroFreeze in forum Tutorials
    Replies: 7
    Last Post: 04-30-2007, 12:53 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •