Raised This Month: $ Target: $400
 0% 

Events, log events, entities.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sambro
Member
Join Date: May 2005
Old 05-13-2005 , 22:35  
Reply With Quote #2

If you're using register_event, no. That function hooks a specific message, for instance BombDrop, or CurWeapon. Such events obviously aren;'t very general

If TFC does, in fact, use log messages for what you're looking for, then you may be in luck.

As far as I can see, you can use register_logevent to have all generic log messages sent straight to a function. From there I'm not sure if you can even find out what message you're handling, but it's worth a try!

Straight from the documentation..

Quote:
You can filter the results by adding conditional parameters. Examples:
"0=World triggered" "1=Game_Commencing"
"1=say"
"3=Terrorists_Win"
"1=entered the game"
"0=Server cvar"
This would seem to suggest that the additional, conditional parameters are not necessary.

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.
sambro is offline
Send a message via MSN to sambro
 



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