Hi, there. I made this function:
I call it like this for now (testing map):
So when I (Player 1) type -bump I see fade-in and fade-out, and Player 2 (other computer) doesn't see it at all. That's nice, I want that. When Player 2 types -bump, on my monitor nothing happens, that's still good. But when Player 2 types -bump on his monitor I see only fade-in and then he get's message "You were disconnected".
I try to turn things around (eg. I host from other computer - so I can rule out any soft/hardware dependencies or whatever), and the same thing repeats. Additionally sometimes when Player 1 types -bump, Player 2 get's disconnected.
What's causing this error? Can someone else try, so I can see it's not only me. Thanks.
Sincerely,
Filip.
JASS:
function ShowPic takes integer index, player plr returns nothing
set udg_LocalPlayer = GetLocalPlayer()
if ( plr == udg_LocalPlayer ) then
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 4, udg_stringArray[index], 100.00, 100.00, 100.00, 0 )
endif
return
endfunction
I call it like this for now (testing map):
Trigger:
- BumpTrig
- Events
- Player - Player 1 (Red) types a chat message containing -bump as An exact match
- Player - Player 2 (Blue) types a chat message containing -bump as An exact match
- Conditions
- Actions
- Custom script: call ShowPic(1,GetTriggerPlayer())
- Events
So when I (Player 1) type -bump I see fade-in and fade-out, and Player 2 (other computer) doesn't see it at all. That's nice, I want that. When Player 2 types -bump, on my monitor nothing happens, that's still good. But when Player 2 types -bump on his monitor I see only fade-in and then he get's message "You were disconnected".
I try to turn things around (eg. I host from other computer - so I can rule out any soft/hardware dependencies or whatever), and the same thing repeats. Additionally sometimes when Player 1 types -bump, Player 2 get's disconnected.
What's causing this error? Can someone else try, so I can see it's not only me. Thanks.
Sincerely,
Filip.