View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 09-08-2013 , 12:31   Re: [CS:GO] Spawned prop push away player
Reply With Quote #16

Quote:
Originally Posted by Marcus_Brown001 View Post
This is what I use to spawn props and mess around with them. Haven't run into issues with it, but I haven't played around with it too much on other games, only extensively tested on HL2DM. Modified it a little to do what you are looking for. Hope this helps!

PHP Code:
new iEnt CreateEntityByName("prop_physics_override");
    
Format(sTargetsizeof(sTarget), "SimpleBuild:%s"sAuth);
DispatchKeyValue(iEnt"targetname"sTarget);
    
PrecacheModel(sModel);
DispatchKeyValue(iEnt"model"sModel);
DispatchKeyValue(iEnt"rendermode""5");
    
if (
DispatchSpawn(iEnt))
{
     
AcceptEntityInput(iEnt"DisableMotion");
     
TeleportEntity(iEntfOriginfAnglesNULL_VECTOR);
        
     return 
iEnt;
} else
    return -
1
I think he wants the prop to still move, just the player can push it.
Mitchell is offline