Anyone who know how to check, if a door is locked ?
Entity:GetSaveTable().m_bLocked
[QUOTE=Nexus435;42918854]Entity:GetSaveTable().m_bLocked[/QUOTE]
Allready tried this, but doesn't seams to work.
heres some code i used. Meta...
[code]
local meta = GetMetaTable("meta") -- Not quit sure if this is right.
function meta:GetDoorInfo()
return self:GetSaveTable().m_bLocked
end
[/code]
[code]
local tr = ply:GetEyeTrace()
if tr.Entity:isDoor() or tr.Entity:IsVehicle() then
if tr.Entity:GetDoorInfo() then
--do something
else
--do something else
end
end
[/code]
It is only possible serverside, you gotta send the data from server to client to use it on client.
[QUOTE=Robotboy655;42923442]It is only possible serverside, you gotta send the data from server to client to use it on client.[/QUOTE]
But. That means that i have to send data from client to server and then back to client to getEyeTrace?
[QUOTE=Errolight;42923560]But. That means that i have to send data from client to server and then back to client to getEyeTrace?[/QUOTE]
Wat? You send it from server to client whenever it changes ( You gotta find a way to detect that efficiently ) and save it like Door.Locked = myvalue, then you just use that saved value in your trace or whatever.
Sorry, you need to Log In to post a reply to this thread.