View Single Post
  #14  
Unread 07-31-2012, 03:35 AM
Snoopy81 Snoopy81 is offline
The Wary
Interface Author - Click to view interfaces
 
Join Date: Feb 2012
Posts: 2
Catching effects

There is 2 ways to catch an effect on the player...

- 1st one as above is to scan "EffectList = LocalPlayer:GetEffects();" at regular intervals (ie: onTimer or on Refresh )

- 2nd, I'd say a cleaner way is to catch events AddCallback(EffectList, "EffectAdded", MyEffectChangedCallback); and "EffectRemoved"

Last edited by Snoopy81 : 07-31-2012 at 03:44 AM.
Reply With Quote