Is there a console command that will send yourself to a specific vector on a map when inputted into the console? ex. gotovector setpos -4204.000000 3192.000000 528.325562;setang 8.153194 -2.038298 0.000000
Make a goto command with a table of locations and if it's equal to specific location, it'll set the senders pos to that specific position
setpos // Move player to specified origin (must have sv_cheats).
setpos_exact // Move player to an exact specified origin (must have sv_cheats).
If that's what you're talking about.
If you want to do it with Lua, then put this into console "lua_run Entity(1):SetPos(Vector(0,0,0))" change Vector to whatever vector you want.
[lua]
concommand.Add( "changePos", function(pl)
pl:SetPos( Vector( 0, 0, 0 ) );
end )
[/lua]
this is a basic example how to do it, i would suggest you search the wiki for other examples.
Thanks for the help and responses
if you want to set the angles, I'm pretty sure you could use SetEyePos
Sorry, you need to Log In to post a reply to this thread.