AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event Flags (https://forums.alliedmods.net/showthread.php?t=134852)

GXLZPGX 08-09-2010 12:07

Event Flags
 
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.

DarkGod 08-09-2010 12:19

Re: Event Flags
 
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.

Jack86 08-09-2010 12:30

Re: Event Flags
 
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.


All times are GMT -4. The time now is 21:52.

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