Hello, I want to get yaw of an angle, I tried tables:
[lua]
local p, y, r = ply:GetAngles()
[/lua]
But fail and it returns nil, Anyway i can detect angles yaw? Or let's say better, I'm just looking for a way to just not pass people from the specific area, currently what i got is:
[lua]
ply:SetPos(ply:GetPos() + Vector(0, -40, 0))
[/lua]
It works but just for some specific areas and ways you try to pass, If you go from other side of the prop it pushes you to the middle and then to other side. Currently my prop detects range of:
[lua]
local ent = ents.FindInBox(self:GetPos() + Vector(-750, -750, -750), self:GetPos() + Vector(750, 750, 750))
[/lua]
Thanks!
[lua]local ang = ply:GetAngles()
local yaw = ang.y
-- local pitch = ang.p
-- local roll = ang.r[/lua]
Yea that works, thank you!
Sorry, you need to Log In to post a reply to this thread.