• 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.

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