hey i put up this code that freezes an entity fine
but when i try to unfreeze it, it just disappears?
i've tried all MOVETYPE's, none of it worked and VPHYSICS makes it disappear.
also tried some entity inputs and stuff but i can't seem to get it unfreeze properly.
help?
PHP Code:
public void OnPluginStart() {
RegConsoleCmd("sm_entfreeze", CMD_Freeze);
RegConsoleCmd("sm_unfreeze", CMD_UnFreeze);
}
public Action:CMD_Freeze(client, args)
{
new ent = Entity_FindByHammerId(89937, "func_physbox");
SetEntityMoveType(ent, MOVETYPE_NONE);
PrintToChatAll("frozen");
return Plugin_Handled;
}
public Action:CMD_UnFreeze(client, args)
{
new ent = Entity_FindByHammerId(89937, "func_physbox");
SetEntityMoveType(ent, MOVETYPE_VPHYSICS);
PrintToChatAll("unfreeze");
return Plugin_Handled;
}
some info from stripper: