AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get user aim question (https://forums.alliedmods.net/showthread.php?t=10621)

v3x 02-24-2005 20:34

Get user aim question
 
Hmm, I'm baffled by this function... Can it return who you are aiming at and what bodypart/distance? If so, how? :?

XxAvalanchexX 02-24-2005 21:57

Code:
new index, bodypart; new Float:distance = get_user_aiming(id,index,bodypart); // index is the player id (or entity id) the user is looking at // bodypart is the hitzone that the user is looking at on the entity // distance is how far the user is from the entity // List of values for bodypart: // HIT_GENERIC      0   /* none */ // HIT_HEAD     1 // HIT_CHEST        2 // HIT_STOMACH      3 // HIT_LEFTARM      4 // HIT_RIGHTARM     5 // HIT_LEFTLEG      6 // HIT_RIGHTLEG     7

v3x 02-24-2005 21:59

Oh, ok..I'll test it out tomorrow. Thanks.


All times are GMT -4. The time now is 14:12.

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