Raised This Month: $51 Target: $400
 12% 

Solved Make weapon_ entity untouchable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode