• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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