AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] Get center body of player? (https://forums.alliedmods.net/showthread.php?t=296186)

CrazY. 04-14-2017 10:20

[ H3LP ] Get center body of player?
 
Hey, its possible get the center body position of the player after who dead? How to!?

edon1337 04-14-2017 10:27

Re: [ H3LP ] Get center body of player?
 
Code:
ExecuteHam(Ham_Center, this, Float:output[3]);

CrazY. 04-14-2017 11:18

Re: [ H3LP ] Get center body of player?
 
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);

edon1337 04-14-2017 11:42

Re: [ H3LP ] Get center body of player?
 
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 }

CrazY. 04-14-2017 16:59

Re: [ H3LP ] Get center body of player?
 
Well, tryed but dont worked. Its possible to get then the head of he or set a follower entity into he body?


All times are GMT -4. The time now is 18:01.

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