| 11-23-2006, 04:54 PM | #1 |
I'm making a Nightvision Goggles item in my map, and I'd like to make it so that whenever a player uses them, it triggers a green fade filter for that player. I can't do fade filters for one specific player in the GUI, but I'm told that in JASS you can use Local Players and the GetLocalPlayer() function. I'm not very fluent in JASS, so I was wondering if anyone could help me out here. What I need is: Event: Unit- A unit uses an item Condition: Item being manipulated = I001:ckng IF: //If Nightvision = false, then it turns on the green filter. Otherwise, it turns the screen back to normal. Condition: Nightvision[Player number of Owner of Hero Manipulating Item] = False Then: Action: Cinematic - Apply a fade filter over 1.00 seconds using Normal Blending on texture White Mask, starting with color (100%, 100%, 100%) and 100% transparency and ending with color (0%, 100%, 0%) and 40% transparency. Else: Action: Cinematic - Apply a fade filter over 1.00 seconds using Normal Blending on texture White Mask, starting with color (0%, 100%, 0%) and 40% transparency and ending with color (100%, 100%, 100%) and 100% transparency. ((But do this only for Owner of Hero Manipulating Item)) Anyone, please? I could just need the Cinematic actions in JASS and then insert them into the middle of the GUI. |
| 11-23-2006, 05:44 PM | #2 |
You will need some simple custom script action to do this, but it's very simple. Here's what you would do to do the fade filter for a specific player: |
