Jump to content

[LE] Simple iMod Script issue


Recommended Posts

Happy easter to everyone !

 

This is a simple "apply iMod OnTriggerEnter & Leave" Script, as it is now works fine, i'm just trying to make it to have already applied the "ImageSpaceModifier" when you enter a cell and the actor is teleported to a door which has the Trigger Box around it.

Now when you enter the cell there is a two seconds delay - fade, as is been scripted to behave.

 

I did put on the script a "OnCellAttach", "OnLoad", "OnCellLoad", i try adding states to it but i have the same problem.
My problem :
When you enter the cell the script will apply two times the iMod, one for the "OnTriggerEnter" and one for the "OnLoad", "OnCellAttach" - ... , so i end up having two times the iMod applyed, and when the player leaves the trigger only one iMod is removed.
Any insights to how i can script this would be greatly appreciated.
This is the Script without the "OnLoad" function which works just fine.
  Reveal hidden contents

Many thanks in advance !
Edited by maxarturo
Link to comment
Share on other sites

So, I had to resort to a simpler solution and make a second small Script just to use it around LOAD DOORS.


Now i'm facing a realy big problem which making different version of the same script is not an option.

My problem is that i can't find a way to "SetAngle" or "Target" to this line :


CamAttachFX01.Play(game.getPlayer())


I use this to apply wind FX but the wind FX dosen't works the same way as the water flow direction... you can't edit it !!... S***T !!.

By "SetAngle" i can change it but i have a cell that is a canyon and the wind has to flow throught the canyon's path. So making 8 Scripts for each direction is not an option here.


Can this be done ? through properties somehow.

This is my main Script so far :

  Reveal hidden contents



I would really appreciate some help or advice with this one because i don't know if it can be done and even more doing it myself, since i'm completely clueless with this one.


Many thanks in advance !!.

Edited by maxarturo
Link to comment
Share on other sites

  On 4/25/2019 at 6:03 AM, IsharaMeradin said:

Can you use the akFacingObject parameter of the Play function in some way? Not sure if your effect is one of the ones that qualifies for using it. Might be worth a try? I don't know. Never really scripted with this type of stuff before.

Thanks IsharaMeradin i'll give it a try... at this point there is no turning back, i have to make this work !!!, even if this means making a new particle system from scratch....

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...