Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //THIS SCRIPT DOESN'T WORK. TROUBLESHOOTING
- $${
- //Credit to Sanwi for creating the swim hover script: http://pastebin.com/aiuESR4H
- if(!swimhover);
- set(swimhover);
- #y_anchor = %YPOS%;
- do;
- if(KEY_SPACE);
- keydown(jump);
- #y_anchor = %YPOS%;
- elseif(KEY_LSHIFT);
- keyup(jump);
- #y_anchor = %YPOS%;
- elseif(#y_anchor > %YPOS%);
- keydown(jump);
- else;
- keyup(jump);
- endif;
- loop;
- PROMPT(&inputcoords,"$$?","Enter target destination coordinates: x and z",true,"%&inputcoords%");
- replace(&inputcoords,"\"","");
- #endcoords[] = split(" ","%&inputcoords%");
- do
- CALCYAWTO(%#endcoords[0]%,%#endcoords[1]%,#yaw);
- inc(#yaw,180);
- looks(%#yaw%,+0,.1);
- keydown(forward);
- if( #distance != #olddistance);
- #olddistance = #distance;
- log("%XPOS%, %ZPOS% (%YPOS%) D: %#distance%");
- endif;
- while( (XPOS != %#endcoords[0]%) || ((ZPOS != %#endcoords[1]%) );
- keyup(forward);
- else;
- unset(swimhover);
- if(!KEY_SPACE);
- keyup(jump);
- endif;
- stop();
- endif;
- stop();
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement