Raised This Month: $51 Target: $400
 12% 

Entity index of the prop_static you're aiming at


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-06-2008 , 06:34   Entity index of the prop_static you're aiming at
Reply With Quote #1

The title says enough I guess. GetClientAimTarget(client, false) works fine for prop_physics entities, but it returns -1 for prop_static entities. I'm looking for a way to get the model of the entity you're aiming at. Is that possible for prop_static entities?

Another way would be to hook OnPlayerUse, but again only prop_physics entities fire those. I don't think I can hook +use (didn't work for me anyway), but then I'd still have the first problem.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
 



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 13:18.


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