View Single Post
Author Message
glhf3000
Member
Join Date: Aug 2010
Location: middle-universe
Old 11-28-2021 , 21:11   Make weapon_ entity untouchable
Reply With Quote #1

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(entitylocanglesNULL_VECTOR);
        
        
DispatchKeyValue(entity"targetname""l4d2_medkit_finale_fix");
        
        
DispatchSpawn(entity); 

Last edited by glhf3000; 11-28-2021 at 21:56.
glhf3000 is offline