Raised This Month: $ Target: $400
 0% 

Event Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-09-2010 , 12:07   Event Flags
Reply With Quote #1

I noticed that usually, when registering an event, they have flags, such as:

register_event( "HLTV", "EVENT_NewRound", "a", "1=0", "2=0" )

What is the point in param 3-5?

And would this work fine when registering damage?

register_event( "Damage", "eDamaged" )

Not once have I seen an event registered without flags.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-09-2010 , 12:19   Re: Event Flags
Reply With Quote #2

You can find all the info about register_event here. I'm not sure if it'd work without flags, though. Best way to find out is to try.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 08-09-2010 , 12:30   Re: Event Flags
Reply With Quote #3

It works without flags, but with flags u reduce number of unnecessary calls, and u filter out situations u dont want function to be called.
__________________

Jack86 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 21:52.


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