Native "SetEntProp" reported: Property "m_usSolidFlags" not safe to access (entity 136/prop_dynamic)
m_nSolidType and spawnflags doesn't help. prop always unsolid and empty.
Current code, which I use to spawn prop:
Code:
SpawnProp(iClient, iPropID, Float:fOrigin[3], Float:fAngles[3])
{
new iEntity = CreateEntityByName("prop_dynamic");
DispatchKeyValue(iEntity, "model", g_szPropPath[iPropID]);
DispatchKeyValue(iEntity, "targetname", "prop");
DispatchKeyValueVector(iEntity, "origin", fOrigin);
DispatchKeyValueVector(iEntity, "angles", fAngles);
DispatchSpawn(iEntity);
SetEntProp(iEntity, Prop_Data, "m_nSolidType", 6);
//SetEntProp(iEntity, Prop_Data, "m_usSolidFlags", 28);
SetEntityMoveType(iEntity, MOVETYPE_NONE);
AcceptEntityInput(iEntity, "DisableShadow");
SetEntPropEnt(iEntity, Prop_Send, "m_hOwnerEntity", iClient);
return iEntity;
}