Raised This Month: $ Target: $400
 0% 

make ent visible and solid only for owner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 09-02-2015 , 20:50   Re: make ent visible and solid only for owner
Reply With Quote #8

You can't manipulate the solid state with this forward. What you really need is pev_groupinfo. The ent will be rendered just for it's owner.

PHP Code:
#define Mask(%0)    ( 1<<(%0 & 31) )

CreateNPC(...) {
    
//....
    //render it just for player with index id
    
set_peviEntpev_groupinfoMask(id));
    
    
//to make it visible for all players use 0 as third argument
    //to make it visible for additional player with index ID add him to the bitmask like
    //set_pev(iEnt, pev_groupinfo, pev(iEnt, pev_groupinfo ) | Mask( ID ) );
    //to remove him from the group use
    //set_pev(iEnt, pev_groupinfo, pev(iEnt, pev_groupinfo ) & ~Mask( ID ) )


Last edited by SpeeDeeR; 09-02-2015 at 20:52.
SpeeDeeR 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:03.


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