AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pev_body (https://forums.alliedmods.net/showthread.php?t=168553)

CHyCMyMpNk 09-30-2011 18:29

pev_body
 
how to check what is pev_body?

exmp : if pev_body = 1

Arkshine 09-30-2011 18:33

Re: pev_body
 
pev( index, pev_body )

CHyCMyMpNk 10-01-2011 07:30

Re: pev_body
 
an exmp:

PHP Code:

        if(amount 0)
        {
            if (
pev(idpev_body0))
            {
                
set_pev(idpev_body14)
            }
        }
        else
        {
            if (
pev(idpev_body14))
            {
                
set_pev(idpev_body0)

            }
        } 

yes ?)

Arkshine 10-01-2011 07:36

Re: pev_body
 
if( pev( index, pev_body ) == 14 )

pev( index, pev_body ) returns a value. And to check a value you use == .

Snaker beatter 10-01-2011 10:02

Re: pev_body
 
if(pev(id, pev_body)
how can i detect head, body, feet

CHyCMyMpNk 10-01-2011 10:04

Re: pev_body
 
tnx, its work.

Hunter-Digital 10-01-2011 13:14

Re: pev_body
 
Quote:

Originally Posted by Snaker beatter (Post 1566469)
if(pev(id, pev_body)
how can i detect head, body, feet

That has nothing to do with this, pev_body gets/sets a sub-model of the selected entity's model.

If you want to get head/body/feet stuff (like exact origin), you need to get bone stuff, search, it's been discussed somewhere.


All times are GMT -4. The time now is 19:35.

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