I want the wall can block player and no hit.
I try this but entity's angles cant turn.
Code:
int iEntity = CreateEntityByName("prop_dynamic");
if (iEntity != -1)
{
DispatchKeyValueVector(iEntity, "origin", origin);
DispatchKeyValue(iEntity, "angles", "0 90 0");
DispatchKeyValue(iEntity, "solid", "2");
DispatchKeyValue(iEntity, "targetname", "Wall");
DispatchKeyValue(iEntity, "model", "models/props/de_nuke/hr_nuke/chainlink_fence_001/chainlink_fence_gate_001_64_door.mdl");
DispatchSpawn(iEntity);
SetEntProp(iEntity, Prop_Send, "m_fEffects", GetEntProp(iEntity, Prop_Send, "m_fEffects") | 0x020); // EF_NODRAW
}
__________________