Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

CreateConVar( "sv_viewheight", "1", { FCVAR_REPLICATED, FCVAR_NOTIFY } )

hook.Add( "PlayerSpawn", "UndertaleSetViewOffset", function( ply )
		timer.Create( "MMDUndertalePly_"..ply:SteamID(), 0.1, 1, function()
			if (ply:GetModel() == "models/MMDUnderTale/CharaC/NPC/chara_c_npc.mdl") || (ply:GetModel() == "models/MMDUnderTale/FriskC/NPC/frisk_c_npc.mdl") then 
			if GetConVarNumber( "sv_viewheight" ) == 1 then
			ply:SetViewOffset( Vector( 0, 0, 60 ) )
			ply:SetViewOffsetDucked( Vector( 0, 0, 48 ) ) end
			else
			ply:SetViewOffset( Vector( 0, 0, 84 ) )
			ply:SetViewOffsetDucked( Vector( 0, 0, 48 ) )
			end
	end )
end )

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.