Raised This Month: $ Target: $400
 0% 

Get user aim question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-24-2005 , 20:34   Get user aim question
Reply With Quote #1

Hmm, I'm baffled by this function... Can it return who you are aiming at and what bodypart/distance? If so, how?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-24-2005 , 21:57  
Reply With Quote #2

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
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-24-2005 , 21:59  
Reply With Quote #3

Oh, ok..I'll test it out tomorrow. Thanks.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 14:12.


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