Hi,
when I "ClearParent" of weapon, it doesn't fall on the ground until I shove it.
PHP Code:
Action CmdTest2(int client, int args)
{
AcceptEntityInput(g_iWeapon, "ClearParent");
SetEntProp(g_iWeapon, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_WEAPON);
SetEntProp(g_iWeapon, Prop_Send, "m_iParentAttachment", 0);
SetEntityMoveType(g_iWeapon, MOVETYPE_VPHYSICS);
TeleportEntity(g_iWeapon, NULL_VECTOR, NULL_VECTOR, NULL_VECTOR);
ChangeEdictState(g_iWeapon, 0);
}
How to solve it?
Thanks.
__________________