I am trying to spawn extra medkits for l4d2 finale maps and dont want for infected players to be able to touch(move) them. In other words i want to convert them to static objects, not dynamic (affected by world physics?).
Tried m_CollisionGroup 1, m_nSolidType 0, spawnflags 8, but with no success.
What is the correct way to do this?
PHP Code:
int entity = CreateEntityByName("weapon_first_aid_kit");
if(entity != -1)
{
TeleportEntity(entity, loc, angles, NULL_VECTOR);
DispatchKeyValue(entity, "targetname", "l4d2_medkit_finale_fix");
DispatchSpawn(entity);