HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simultaneous Camera Panning and Dialogue

10-26-2007, 04:37 PM#1
Castlemaster
I tried to find a tutorial on this but failed.

I want the camera to pan to different areas while a unit is giving a transmission. I can get the transmissions fine, but the camera won't move at all. Here is the code.

This is the entire code, but it's really just two lines of "send transmission" followed by "apply camera"
Trigger:
Actions
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Excellent! I am gla.... Modify duration: Set to 4.50 seconds and Wait
Set TempUnit = (Random unit from HeroGroup)
Cinematic - Send transmission to (All players) from TempUnit named Night Elf Reinforce...: Play No sound and display We are here to hono.... Modify duration: Set to 5.00 seconds and Wait
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display We have been assaul.... Modify duration: Set to 6.00 seconds and Wait
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display They have three gat.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply North Gate <gen> for (Picked player) over 0.00 seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Although I have bee.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply Center Gate <gen> for (Picked player) over 0.00 seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Since you, our bret.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply South Gate <gen> for (Picked player) over 0.00 seconds
Set TempUnit = (Random unit from HeroGroup)
Cinematic - Send transmission to (All players) from TempUnit named Night Elf Reinforce...: Play No sound and display It sounds dubious h.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply Hero Selection <gen> for (Picked player) over 0.00 seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display I will begin the in.... Modify duration: Set to 2.50 seconds and Wait
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds

P.S. on the sending transmission, what is the difference between adding time and setting the time?
10-26-2007, 07:07 PM#2
Silvenon
You have to put waits, transmission from unit doesn't wait, it just has a duration of the transmission.

So

Trigger:
Actions
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Excellent! I am gla.... Modify duration: Set to 4.50 seconds and Wait
Set TempUnit = (Random unit from HeroGroup)
Cinematic - Send transmission to (All players) from TempUnit named Night Elf Reinforce...: Play No sound and display We are here to hono.... Modify duration: Set to 5.00 seconds and Wait
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display We have been assaul.... Modify duration: Set to 6.00 seconds and Wait
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display They have three gat.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply North Gate <gen> for (Picked player) over 0.00 seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Although I have bee.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply Center Gate <gen> for (Picked player) over 0.00 seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display Since you, our bret.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply South Gate <gen> for (Picked player) over 0.00 seconds
Wait <duration here> seconds
Set TempUnit = (Random unit from HeroGroup)
Cinematic - Send transmission to (All players) from TempUnit named Night Elf Reinforce...: Play No sound and display It sounds dubious h.... Modify duration: Set to 4.00 seconds and Wait
Camera - Apply Hero Selection <gen> for (Picked player) over 0.00 seconds
Wait <duration here> seconds
Cinematic - Send transmission to (All players) from Archmage 0025 <gen> named Archmage General: Play No sound and display I will begin the in.... Modify duration: Set to 2.50 seconds and Wait
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds

I don't know where do you want waits or how long should they last, I just gave an example.

This code you posted, everything happens in an instant, and I don't think you wanted that.

Btw, all transmissions also happen in an instant, so I don't think this:

Quote:
I can get the transmissions fine

is entirely true.....

Quote:
P.S. on the sending transmission, what is the difference between adding time and setting the time?

Not sure exactly, just use set every time, that way you will know for sure how long the transmission will last.
10-26-2007, 08:36 PM#3
Castlemaster
hmm, ok, i put waits After the "apply camera' commands, but all it did was make the unit transmissions go, then pause for the wait time, then go again without panning at all.

EDIT: I found the problem. I was applying the camera to "picked player" when I had not picked one ><. Your comment about adding waits was correct though Silvenon.
10-27-2007, 09:10 AM#4
Silvenon
Quote:
I was applying the camera to "picked player" when I had not picked one ><

Haha.... didn't see that :)