I am trying to set certain entities networked variables from their position via a table. I am not sure what to turn the string into so that I can use v.Entity like I would use trace.Entity when looking at the entity.
[lua]
local function SetDoor()
local ClosedDoors = { “107.0000 0.0000 56.2813” }
for k, v in pairs( ClosedDoors ) do
if v.Entity:IsDoor() then
v.Entity:SetNWInt( "Type", 0 )
end
end
end
concommand.Add( “SetDoors”, SetDoor )
[/lua]