Raised This Month: $32 Target: $400
 8% 

pev_body


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 09-30-2011 , 18:29   pev_body
Reply With Quote #1

how to check what is pev_body?

exmp : if pev_body = 1
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2011 , 18:33   Re: pev_body
Reply With Quote #2

pev( index, pev_body )
__________________
Arkshine is offline
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 10-01-2011 , 07:30   Re: pev_body
Reply With Quote #3

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 ?)
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2011 , 07:36   Re: pev_body
Reply With Quote #4

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

pev( index, pev_body ) returns a value. And to check a value you use == .
__________________
Arkshine is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 10-01-2011 , 10:02   Re: pev_body
Reply With Quote #5

if(pev(id, pev_body)
how can i detect head, body, feet
__________________
Snaker beatter is offline
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 10-01-2011 , 10:04   Re: pev_body
Reply With Quote #6

tnx, its work.
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-01-2011 , 13:14   Re: pev_body
Reply With Quote #7

Quote:
Originally Posted by Snaker beatter View Post
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.
__________________
Hunter-Digital is offline
Reply


Thread Tools
Display Modes

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 07:23.


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