Aller au contenu

Photo

How to associate an effect to events ?


2 réponses à ce sujet

#1
anakin5

anakin5
  • Members
  • 258 messages
I would like to send an event using SignalEvent function. This event is EVENT_TYPE_APPLY_EFFECT.

But I need to associate an effect to this event in order to get it back in the handlers with the function GetCurrentEffect().

Is there any SetEventEffect() function hidden somewhere ?

Modifié par anakin5, 30 décembre 2009 - 03:39 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Usually that event is created automatically when you apply an effect on an object, I've never seen any reason to try and create it manually. It may not be possible to set what will be returned from GetCurrentEffect(), other than the normal way of applying effects.



What are you trying to do? Maybe there's another approach you can take.

#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Yeah, I understand you. Unfortunately, I don't have the answer. I played around with summons for a while, but ultimately abandoned the project because of the complications of interacting with the core scripting, although I wanted the pet portrait which you don't seem to. The only advise I can really give you is to trace through the code and play around a bit to figure out exactly what the engine is doing and where, because I don't fully understand the system.