|
~lick~
|
09-08-2013
, 12:31
Re: [CS:GO] Spawned prop push away player
|
#16
|
Quote:
Originally Posted by Marcus_Brown001
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(sTarget, sizeof(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(iEnt, fOrigin, fAngles, NULL_VECTOR);
return iEnt;
} else
return -1;
|
I think he wants the prop to still move, just the player can push it.
|
|
|
|