I'm trying to use the Xlua extension to write a small script that makes an object disappear gradually thanks to the manipulation of the semi-transparency coefficient ,but I don't really understand how MMFI works...
Here's the script :
So far, it works but when it comes to the modification of the coefficient it doesn't work anymore. Trying to assign a value to obj.inkCoef makes the obj.inkEffect line useless since it's not transparent anymore. :/
Could someone tells me what I should do to make it working ?
Thanks in advance for your help