1. I want to lock a door, so player's wont be able to open it. Would this work?
Code:
register_forward(FM_Think, "fw_entitythink", 0)
public fw_entitythink(ent)
{
if(g_DoorLocked[ent]) return FMRES_SUPERCEDE
return FMRES_IGNORED
}
The code is shorten. I just want to know if FMRES_SUPERCEDE would stop it from rotating.
2. I want to make a door not solid, so player's can go through it. Would this work?
Code:
entity_get_edict(ent, SOLID_NOT)
Im asking because in Ryan's Breakable door plugin, he move the door to another origin so player's can go through.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.