View Single Post
Author Message
heroicpower7613
Member
Join Date: Nov 2016
Old 11-01-2017 , 03:26   UNfreezing an entity? func_physbox
Reply With Quote #1

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(clientargs
{
    new 
ent Entity_FindByHammerId(89937"func_physbox");
    
SetEntityMoveType(entMOVETYPE_NONE);
    
    
PrintToChatAll("frozen");
    return 
Plugin_Handled;
}


public 
Action:CMD_UnFreeze(clientargs
{
    new 
ent Entity_FindByHammerId(89937"func_physbox");
    
SetEntityMoveType(entMOVETYPE_VPHYSICS);
    
    
PrintToChatAll("unfreeze");
    return 
Plugin_Handled;

some info from stripper:

Spoiler

Last edited by heroicpower7613; 11-01-2017 at 07:25.
heroicpower7613 is offline