[Solved] Register Event: Start Cinematic?

Status
Not open for further replies.
Level 18
Joined
Apr 13, 2008
Messages
1,629
Hello folks,

It is possible to register an event for the end of cinematic.
JASS:
TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_END_CINEMATIC)

JASS:
constant playerevent EVENT_PLAYER_END_CINEMATIC = ConvertPlayerEvent(17)

I checked a 20 years old API here: JASS Manual: API Browser - Type playerevent
And I could only find the END_CINEMATIC event.

My question is:
Is there a way to detect the start of cinematic mode?
 
EVENT_PLAYER_END_CINEMATIC is just a poorly worded Event for "Player has pressed the escape key" since that key is used to skip cinematics.

When you say "start of cinematic mode" do you mean these two Actions?
  • Actions
    • Cinematic - Turn cinematic mode On for (All players)
    • Cinematic - Turn cinematic mode On for (All players) over 0.20 seconds
Here's the code equivalent:
vJASS:
CinematicModeBJ(cineMode, forForce)
CinematicModeExBJ(cineMode, forForce, interfaceFadeTime)
You could create your own functions which act as a shell for these:
vJASS:
function MyCinematicMode takes boolean cineMode, force forForce returns nothing
 // Do my own stuff
 call CinematicModeEx(cineMode, forForce)
endfunction

function MyCinematicModeEx takes boolean cineMode, force forForce, real interfaceFadeTime returns nothing
 // Do my own stuff
 call CinematicModeExBJ(cineMode, forForce, interfaceFadeTime)
endfunction
Or maybe I'm misunderstanding.
 
Last edited:
Status
Not open for further replies.
Back
Top