Since engine version: 5.1 OC
Counts object effects or global effects.
int GetEffectCount(string mask, object target, int max_priority);
- [opt] Search mask for effect names. You can use '*' or '?' wildcards or specify an effect name directly. If unspecified, all effects are counted.
- [opt] Target object the effects of which you want to count. If unspecified, the global effects will be counted.
- [opt] If not 0, only those effects are counted which have the specified priority or lower.
For an example see GetEffect.