Thread: Anyone know why the carpet doesnt show?

Results 1 to 7 of 7
  1. #1 Anyone know why the carpet doesnt show? 
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Using animation 2261

    Attached image
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Nighel View Post
    Using animation 2261

    Attached image
    Animate the object, pretty sure its not an play animation that makes the carpet appear.
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    What is 2262 for animation?


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by _Patrick_ View Post
    Animate the object, pretty sure its not an play animation that makes the carpet appear.
    Quote Originally Posted by arch337 View Post
    What is 2262 for animation?
    Anim 2261(It is thats why i tried using it)
    Attached image

    Its like a faster version of 2261 that doesnt stay there (also when using that it doesnt look as clean)
    Attached image
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    bump.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2017
    Posts
    15
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Can you post the code for that "one" and "two" commands
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by ofek123411 View Post
    Can you post the code for that "one" and "two" commands
    Here is some of the code:

    Code:
    		final carpetData data = carpetData.values()[carpetRide];
    		player.running = false;
    		PathFinder.path(player, data.startPosition.getX(), data.startPosition.getY());
    		Server.getTaskScheduler().schedule(new Task(1, false) {
    			@Override
    			public void execute() {
    				if(player.getPosition().equals(data.startPosition)) {
    					//TODO: add facing based on dir
    					player.facePosition(player.getPosition().getX(), player.getPosition().getY() - 1);
    					Server.getTaskScheduler().schedule(new Task(2, false) {
    						@Override
    						public void execute() {
    							player.running = true;
    							//Sets the players running/stand/turning animations to the onces from the carpet
    							handleSetup(player);
    							stop();
    						}
    					});
    					Server.getTaskScheduler().schedule(new Task(3, false) {
    						@Override
    						public void execute() {
    							
    							if(player.index == -1) {
    								stop();
    								return;
    							}
    							
    							//So if "pathRequired" is true it will run/walk the player to the next path
    							if(player.pathRequired) {
    								PathFinder.path(player, data.walkTo[player.carpetStage].getX(), data.walkTo[player.carpetStage].getY());
    								player.pathRequired = false;
    							}
    							
    							//Rest is pointless
    						}
    					});
    					stop();
    				}
    			}
    		});
    	}
    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. Anyone know what the issue is here?
    By Neill in forum Help
    Replies: 1
    Last Post: 04-21-2010, 01:41 AM
  2. Anyone know why?
    By Kyle in forum Chat
    Replies: 0
    Last Post: 08-31-2009, 12:08 PM
  3. Replies: 0
    Last Post: 07-18-2009, 04:03 PM
  4. Replies: 1
    Last Post: 05-06-2009, 03:39 PM
  5. Why the wall doesnt go away?
    By blacksh00t in forum Help
    Replies: 4
    Last Post: 03-22-2009, 03:31 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
  •