Raised This Month: $ Target: $400
 0% 

[Solved]Line


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-06-2011 , 07:30   Re: Line
Reply With Quote #1

No, I already saw these threads.
usaexelent is offline
Send a message via Skype™ to usaexelent
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-06-2011 , 07:42   Re: Line
Reply With Quote #2

See funcwiki on trace_line() and get it's return, that should be assigned to an entity if it hit any, check if that entity is a player and trigger your function...

Code:
new ent = trace_line( ... ) // I don't remember the params

if(is_user_connected(ent))
{
    // ent is player
}
__________________
Hunter-Digital is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-06-2011 , 12:15   Re: Line
Reply With Quote #3

I seriously think you've got issues.
Quote:
Originally Posted by Hunter-Digital View Post
See funcwiki on trace_line() and get it's return, that should be assigned to an entity if it hit any, check if that entity is a player and trigger your function...

Code:
new ent = trace_line( ... ) // I don't remember the params

if(is_user_connected(ent))
{
    // ent is player
}
Is it that hard to comprehend ?
__________________
Hunter-Digital 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 03:20.


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