Raised This Month: $ Target: $400
 0% 

get_user_aiming and non-players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 00:14   get_user_aiming and non-players
Reply With Quote #1

Can someone give me an example of get_user_aiming, that would recieve a entity name and would do for example, a client print if the entity classname was woot1 ? I do not know how to use get_user_aiming with a non-player, even though it probably is quite simple; i can't figure it out.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-06-2005 , 00:29  
Reply With Quote #2

Code:
new entity, hitpart; get_user_aiming(id,entity,hitpart); // make sure valid entity and not a player if(is_valid_ent(entity) && !is_user_connected(entity)) {    new classname[32];    entity_get_string(entity,EV_SZ_classname,classname,31);    if(equal(classname,"woot1")) {       // so-and-so    } }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 01:02  
Reply With Quote #3

well, that was idiotic of me.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
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 19:26.


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