Raised This Month: $51 Target: $400
 12% 

Solved UNfreezing an entity? func_physbox


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode