Raised This Month: $ Target: $400
 0% 

Events, log events, entities.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-14-2005 , 08:56  
Reply With Quote #3

Quote:
Originally Posted by sambro
Inside the logevent function, you use read_data to get a parameter. Try using read_data(0), it may give you the name of the logevent.
I think read_data is made for "normal" events, not log events. It crashes when trying to use read_data for log events.

I've got an idea for the other problem though (melee attack on objects). Using client_PreThink, entity_get_int and get_user_weapon I could find out an attacker's ID and weapon. The problem is then to find out if the player is attacking an object, and if this object belongs to his own team or not.
pizzahut 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 16:44.


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