Jump to content
Sign in to follow this  
atomictim7

Event for entering optics

Recommended Posts

I am trying to add a scripted effect to the Apache optics to make the DTV mode black and white with noise. 

I initially made a script that checks every 2 seconds for whether the camera view is gunner, and if so apply the effect.

However I'd rather have it event driven so I don't have a script running unnecessarily.

 

My first attempt at event driven was to add an AnimChanged event handler in an init script which checks the name of the animation in order to apply the effect upon entering the optics. This sort of worked (it was reversed and didn't always apply the effect) however I am unsure of the name for the animation of entering an optic (if there is one). The name of the animation I check for is: heli_attack_02_gunner. I got this by printing the name of every animation done and by my actions deduced this to be the most likley one.

 

Can anyone enlighten me as to the proper animation name, or even a better method to achieve this event driven change?

 

Thanks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×