Is on the ground.
Hi,
There is any way to check where is the player? I mean, player on the ground or no. ;D |
Re: Is on the ground.
if (pev(id, pev_flags) & FL_ONGROUND) should work fine.
|
Re: Is on the ground.
Thanks. :)
|
Re: Is on the ground.
Quote:
|
Re: Is on the ground.
As long as they are ents what do you think ? A player is an entity...
|
Re: Is on the ground.
Ofcourse it is.
But a player entity is index from 1 thru 32. And non-player entites begin after index 32 |
Re: Is on the ground.
An index is just a way to identify the entity....
|
Re: Is on the ground.
okay, but i read somewhere that non-payer entities have indices something like 45.76 etc
|
Re: Is on the ground.
45.76? They cant have decial indexes. I still dont get your question :?
Anyway, 0 - non-player entity (worldspawn), 1 - maxplayers - player entities; anything beyond - non player. And yes, non player entities can have those flags too. (like FL_ONGROUND and others). |
Re: Is on the ground.
Quote:
By the way, you make nice weapons man. :) :wink: |
| All times are GMT -4. The time now is 17:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.