A new command has been added:
rust.ForcePlayerPosition(player,x,y,z)
this will is a RAW teleportation, it will not force you to reload all the snapshots, it will load as if you ran there.
this is very good for the portgun as you can just teleport around.
it's also good for any other teleportation methods
even if i recommend for player teleportations to add:
the code above will prevent players from falling when teleported.Code:function PLUGIN:TeleportPlayer( player, destination ) player:StartSleeping() rust.ForcePlayerPostion(player,destination.x,destination.y,destination.z) player:SetPlayerFlag( global.PlayerFlags.ReceivingSnapshot, true ) player:UpdateNetworkGroup() player:SendFullSnapshot() end
as for admin teleportations only this:
Code:function PLUGIN:TeleportAdmin( player, destination ) rust.ForcePlayerPostion(player,destination.x,destination.y,destination.z) end
New Teleportation rust.ForcePlayerPosition
Discussion in 'Rust Development' started by Reneb, Jan 26, 2015.