Question

[lua]
function FreezeBlocks()
for k,v in pairs(ents.GetAll()) do
if( string.match(string.lower(v:GetClass()), “func_door”) ) then
v:SetMoveType(MOVETYPE_NONE)
end
end
end
FreezeBlocks();
[/lua]

Hi, i’m trying to stop the blocks with func_door in the map but keep them work without move like in bhop mods if someone played before.
Thanks!

Why are you using string.match ?

Why not
[LUA]
if v:GetClass() == “func_door” then
v:SetMoveType(MOVETYPE_NONE)
end
[/LUA]

Untested, but that would be a more efficient way of doing it.

Its freezing the block but, i want that the block will freeze and he will still work like a door, for example, there is a block when the player touch the block the block fall down and back like a door (open and close) and i want that door open without a move, if you played before in bunnyhop map you should understand.

You mean the door will open/close without it moving?

amm yes…
kind of move without animation
https://dl.dropbox.com/u/28388003/asdfasdfasdf.jpg