Raised This Month: $ Target: $400
 0% 

[ H3LP ] Get center body of player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-14-2017 , 10:20   [ H3LP ] Get center body of player?
Reply With Quote #1

Hey, its possible get the center body position of the player after who dead? How to!?
__________________








CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-14-2017 , 10:27   Re: [ H3LP ] Get center body of player?
Reply With Quote #2

Code:
ExecuteHam(Ham_Center, this, Float:output[3]);
__________________
edon1337 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-14-2017 , 11:18   Re: [ H3LP ] Get center body of player?
Reply With Quote #3

This is causing abnormal runtime error in my CS.

Code:
new Float:origin[3] ExecuteHam(Ham_Center, touched, origin) entity_set_vector(toucher, EV_VEC_origin, origin);
__________________








CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-14-2017 , 11:42   Re: [ H3LP ] Get center body of player?
Reply With Quote #4

NVM that's for AMXX 1.8.3

Try this,
Code:
GetEntityCenter(const iIndex, Float:flCenter[3]) {     static Float:flAbsMin[3], Float:flAbsMax[3]     pev(iIndex, pev_absmin, flAbsMin)     pev(iIndex, pev_absmax, flAbsMax)         flCenter[0] = (flAbsMin[0] + flAbsMax[0]) * 0.5     flCenter[1] = (flAbsMin[1] + flAbsMax[1]) * 0.5     flCenter[2] = (flAbsMin[2] + flAbsMax[2]) * 0.5 }
__________________
edon1337 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-14-2017 , 16:59   Re: [ H3LP ] Get center body of player?
Reply With Quote #5

Well, tryed but dont worked. Its possible to get then the head of he or set a follower entity into he body?
__________________








CrazY. is offline
Reply



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 18:01.


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