| 06-02-2009, 11:57 AM | #2 |
Saying it is not doing what it is supposed to do isn't very helpful. What does it do instead? |
| 06-02-2009, 01:23 PM | #3 |
Ok, the fog fade-in/out I easily figured out, but the timer... Somehow, the timer is displayed for everybody, instead of the owner of the dying hero. (Also, how do I get the cinematic fade thingy to only show for one player?) |
| 06-02-2009, 02:00 PM | #4 | |||
Quote:
The problem of the timer shown to everybody propably lies in the usage of Player(0) in GUI, due it's range is 1-16 in GUI, but 0-15 in JASS.
About showing a cinematic fade to only 1 player, you HAVE to use JASS. It's not really makeable in GUI. It would look in this direction...
|
| 06-02-2009, 04:14 PM | #5 | |
Meh, put the part of the setup trigger where I set those things up there. It really uses 1 instead of 0? Huh. Too used to Java. Quote:
![]() |
| 06-02-2009, 06:11 PM | #6 |
Then you set the string for the fade filter at the initial stage to "" (empty string) and for the wanted player, in this case the owner of hero n, equal to the wanted filter. If you have translated it, it'll look like this.. JASS:function whatever takes nothing returns nothing //some code call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 ) //This is the important line //some more code endfunction JASS:function whatever takes nothing returns nothing local string s = "" //some code if GetLocalPlayer() == GetOwningPlayer(udg_PlayerHero[ARRAY_SLOT])) then //too lazy to look in the WE for Loop Integer A, but you know what i mean with ARRAY_SLOT set s = "ReplaceableTextures\\CameraMasks\\White_mask.blp" endif call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, s, 0, 0, 0, 0 ) //some more code I hope i didn't made any stupid mistake, kinda sleepy atm. |
| 06-03-2009, 12:02 AM | #7 |
Alright, I did it to the map. Can't really test it in multiplayer though. EDIT: Mr. Peppers seems to have found (and fixed) an issue with the methods above. I'll just go ahead and +Coffee-Mocha you guys anyway :p |
