Thread: Walk with command?

Results 1 to 4 of 4
  1. #1 Walk with command? 
    Registered Member
    Join Date
    Dec 2008
    Posts
    207
    Thanks given
    1
    Thanks received
    0
    Rep Power
    14
    I need a command that I could use to walk to certaint co-ordinates, I know there was a tutorial on this but I can't seem to find it..if anyone has the link, or can just show the the code here it would be greatly appreciated.


    Also on a side note, does anyone have the startAnimation for cooking? Like hunching over the range and moving your arms?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    The command to walk somewhere is like walkTo or something. Just look at Delta's walkTo for ideas.

    I think the animation is 896.
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2008
    Posts
    207
    Thanks given
    1
    Thanks received
    0
    Rep Power
    14
    Thank you the animation was correct, and I will look into delta.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Arizona's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    275
    Thanks given
    11
    Thanks received
    12
    Rep Power
    113
    THIS IS NOT FROM MY ARIZONAS REVOLUTION THIS IS RIPPED RIGHT FROM DELTASCAPE



    Code:
        public void walkTo(int i, int j)
        {
            if(entangleDelay > 0)
                return;
            newWalkCmdSteps = 0;
            if(++newWalkCmdSteps > 50)
                newWalkCmdSteps = 0;
            int k = absX + i;
            k -= mapRegionX * 8;
            newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0;
            int l = absY + j;
            l -= mapRegionY * 8;
    	newWalkCmdIsRunning = ((inStream.readSignedByteC() == 1) && playerEnergy > 0);
            for(this.i = 0; this.i < newWalkCmdSteps; this.i++)
            {
                newWalkCmdX[this.i] += k;
                newWalkCmdY[this.i] += l;
            }
    
            poimiY = l;
            poimiX = k;
        }
    TRUETECH LOL:
    Spoiler for Rofl:
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •