Raised This Month: $ Target: $400
 0% 

Events, log events, entities.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pizzahut
Senior Member
Join Date: Oct 2004
Old 05-13-2005 , 22:04   Events, log events, entities.
Reply With Quote #1

1) Is there a method to catch *all* events without having to register 60 events and writing 60 functions? I only want to know when an event occurs, and print out event id and name (possibly data, too).

2) Atm I'm using log events to catch attacking of TFC specific objects (e.g. sentry gun). However, this doesn't work for melee weapons. Any ideas?

EDIT:

The log events turn out to be pretty useless for this purpose.
Quote:
[20:18:15] <pizzahut2> it says something like "bot triggered sentry_destroyed"
[20:184] <pizzahut2> when i shoot with supershotgun, or if i use knife
[20:18:46] <pizzahut2> bot being the victim
[20:18:57] <pizzahut2> so yeah, only works with nails
EDIT 2:

There was an error in "tfcevents.sma" :

Replaced
register_event("SayText", "event70", "ab")
with
register_event("SayText", "event80", "ab")
Attached Files
File Type: sma Get Plugin or Get Source (tfcevents.sma - 678 views - 7.2 KB)
File Type: sma Get Plugin or Get Source (tfclogevents.sma - 1081 views - 3.6 KB)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 02-16-2013 at 09:58.
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