Is this re-check necessary?
PHP Code:
|
Re: Is this re-check necessary?
whats before if(!pev_valid(EntID[id]))//ent number for a player ? (First one)
And it depends what your doing afterwards, It never hurts to check if an entity is valid, because if it isn't and you mess with it, you probably will crash your server. |
Re: Is this re-check necessary?
ok, I'll keep the double check because i do a lot of stuff after.
Another question: i created an entity gave it a player model and when i drop it to the floor half of the body goes through it. I'm using fakemeta and i've been trying for HOURS to solve this problem. Any help will be appreciated. PHP Code:
|
Re: Is this re-check necessary?
You didn't set ent's pev_maxs/pev_mins.
|
Re: Is this re-check necessary?
PHP Code:
|
Re: Is this re-check necessary?
Quote:
|
Re: Is this re-check necessary?
Code:
|
Re: Is this re-check necessary?
Ok i got it. Setting pev_mins and pev_maxs helped with the entity not falling through the ground. Using EngFunc_SetSize helped with players passing through the entity (it was like SOLID_NOT).
Thanks to everyone for your help, i really appreciate it. Its frustrating to work a lot on your script and not getting any good results lol. |
| All times are GMT -4. The time now is 09:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.