Raised This Month: $ Target: $400
 0% 

grab non-solid entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lkh1018
Junior Member
Join Date: Aug 2007
Old 03-14-2010 , 08:14   grab non-solid entities
Reply With Quote #1

hi, i want to know how to grab a non-solid entities?
or how to get which entity that the user is aiming if the entity is no solid?
i am new comer and sorry for my ban english, thanks for help
lkh1018 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-14-2010 , 13:14   Re: grab non-solid entities
Reply With Quote #2

If you use
PHP Code:
new aimedbody

get_user_aiming
indexaimedbody 
then aimed will return the index (if applicable) of whatever the user is aiming at. Make sure it's a player, alive, etc, and then check if it's solid or not.

Body is the part of body being aimed at (I think. Never really used that param).
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-14-2010 , 15:10   Re: grab non-solid entities
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
If you use
PHP Code:
new aimedbody

get_user_aiming
indexaimedbody 
then aimed will return the index (if applicable) of whatever the user is aiming at. Make sure it's a player, alive, etc, and then check if it's solid or not.

Body is the part of body being aimed at (I think. Never really used that param).
This does not work for non-solid entities.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-14-2010 , 15:12   Re: grab non-solid entities
Reply With Quote #4

Oh. My bad.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
lkh1018
Junior Member
Join Date: Aug 2007
Old 03-16-2010 , 07:35   Re: grab non-solid entities
Reply With Quote #5

so any people know how?_?
lkh1018 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 08:46.


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