Visual effects

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
Does anyone know how to trigger various visual effects, such as the "blue flash" that happens during religious conversion?

I've been doing sound effects using Events.AudioPlay2DSound(). I was hopping that visual effects might be similarly easy, but haven't found any likely events.
 
Found a partial answer, but it is not entirely satisfying. This method appears in a few places:

Events.GameplayFX(hex.x, hex.y, -1)

It gives you the generic yellowish "light from above" and sound effect used by the game to highlight units. I thought maybe the 3rd arg would control effect type, but it doesn't (you can put any int, str or nil in there and it makes no difference).

I'd still like access to some of the other effects used by the game, but these might not be exposed to us.
 
I'm trying to do something similar. Where did you find the Event.GamplayFX document? I've figured out how to change animation on unit models, but I can't find the originating trigger for the paradrop animation.
 
Back
Top Bottom