Raised This Month: $51 Target: $400
 12% 

QUESTION: for mattie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-27-2005 , 19:45   QUESTION: for mattie
Reply With Quote #1

If 2 script packs use the same event, which .cfg file will exec first? Is it the order they were registered? Does the execution of those .cfg files overlap or will the second wait for the first to finish?
__________________
ichthys is offline
Mattie
Veteran Member
Join Date: Jan 2005
Old 05-27-2005 , 21:36   Re: QUESTION: for mattie
Reply With Quote #2

Quote:
Originally Posted by ichthys
If 2 script packs use the same event, which .cfg file will exec first? Is it the order they were registered? Does the execution of those .cfg files overlap or will the second wait for the first to finish?
They will fire pretty much in order of registration, but I wouldn't count on this, and I think script writers should consider the behaviour undefined.

The cfg files do not overlap. They execute sequentially. Each script runs to completion before any other script can run.

Why do you ask?
-Mattie
Mattie is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-27-2005 , 22:53  
Reply With Quote #3

Its for my player track script. Keeps track of players when they activate and disconnect. I'm making it so that other scripts can use it to store player specific cvars easily. Because the player track script uses player_activate, if any other script need to use player_activate it should run just after. Im just using delayed commands now.
__________________
ichthys 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 08:19.


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