• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Jass Cinematic System Help

Status
Not open for further replies.
Level 6
Joined
Mar 10, 2008
Messages
147
Okay here is my trigger. This is juts a test, normally it should show me a blooodmage, then the camera should move to an illidan further away. Instead every thing is black, and i see a random area on the map

Here is my initialization trigger:

  • Test Init
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • Custom script: call InitCinematicSystem()
      • Set cinS_camera[12] = Camera 039 <gen>
      • Set cinS_camera[13] = Camera 040 <gen>
      • Cinematic - Turn cinematic mode On for (All players)
And here is the trigger that should start after 2sec

JASS:
function Trig_Test_Actions takes nothing returns nothing


  call WriteToScene(2)

  call ScriptCamera(0.0, 11, 1.0, 1)
  call ScriptCamera(0.0, 12, 5.0, 4)


endfunction

//===========================================================================
function InitTrig_Test takes nothing returns nothing
    set gg_trg_Test = CreateTrigger()
    call TriggerAddAction( gg_trg_Test, function Trig_Test_Actions)
endfunction
 
Make sure that you actually run the Trigger.

And also, why did you put as a parameter in ScriptCamera 11 for the first function and 12 in the second?

The arrays of your cinS_camera are 12 and 13. So it might crash from the invalid array. Also, I suggest setting your array sizes to the actual camera number to avoid confusion like this.

Well, other than that, I don't know. If you are going to use the "PlayScene" function, make sure the parameter is set to "2" in correspondance to "WriteToScene".

Maybe you also need to specify the time parameter. (First parameter for ScriptCamera) I'm really not sure what it does though. Oddly, I haven't studied this system much.
 
Status
Not open for further replies.
Top