How would you make a walk to position script? As if you saved where you were with a command, went to the other side of the mapped and used a command to walk back and got in the exact same position?
This is easier said than done. While making a script that walks from point A to point B in a straight line with no obstacles would be fairly easy.
If you wanted the player to be able to walk from point A to point B when the 2 points have no possible straight line route between them. You'd need to use some form of AI pathfinding to find the path for you. These navigation systems already exist for the HL2 npcs and CSS bots in the form of AI nodes and navigation mesh respectively. However access to both of these via lua isnt implemented as far as I know.
Your best bet would probably be to use a lua module such as the A* Pathfinding module if its been updated for GM13. This module creates its own navigation structure and has functions for finding a path between 2 points.
As for moving the player around, other than running the console commands for the movement keys or using a hook to override player movement. I'm not sure how you would do it, haven't manipulated the player much in my own lua.
Hope that helps.
[URL="http://facepunch.com/showthread.php?t=953805"]http://facepunch.com/showthread.php?t=953805[/URL]
Check that out.
Sorry, you need to Log In to post a reply to this thread.