• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] Register Event: Start Cinematic?

Level 17
Joined
Apr 13, 2008
Messages
1,597
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?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,591
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:
Top