Hello, I’m trying to make my prophunt server be able to actually rotate the prop when you hold right mouse button,
I’ve included this in the init.lua in gamemodes/prop_hunt/gamemode/init.lua
hook.Add( "SetupMove", "PH_PropRotation", function( ply, mv, cmd )
if (ply:KeyDown(IN_ATTACK2) and ply:Team() == TEAM_PROPS ) then
local ang = ply:GetAngles()
mv:SetAngles(Angle(90, ang.y, 90)) -- Sets pitch, roll to 90 degrees to keep prop upright
end
end )
but it’s not working, can you guys help me out?