| 01-16-2004, 12:36 AM | #1 |
Is there a way to set a players start location from triggers? Im using a trigger that basically after the opening cinema finishes, it spawns the players in random spots around the map. Problem is, the camera wont start out panned to their starting unit. Here's the trigger I used to place their starting units on the map. Player Group - Pick every player in Team1 and do (Unit - Create 1 Farmhand for (Picked player) at (Random point in Start[(Random integer number between 1 and 10)]) facing Default building facing degrees) What I want is to also pan each players camera to their starting unit once they have control and the game "starts". WHY does this seem so hard lol. As always thanks for helpin me out, im slowly gettin this stuff down. -Huh |
| 01-16-2004, 12:48 AM | #2 |
No I don't know there is any way of placing a start location anywhere else in the game with triggers. You don't need to spawn the units on the start location, you could just make a region and spawn the units there ://// |
| 01-16-2004, 05:10 AM | #3 |
Just pan the camera after creating the unit. Make your "Pick player" thing a multimple actions one, and then put this RIGHT after the "Create unit" part. Code:
Pan camera for (picked player) to the position of (last created unit) So it looks like Code:
Player Group - Pick every player in Team1
loop actions
Unit - Create 1 Farmhand for (Picked player) at (Random point in Start[(Random integer number between 1 and 10)]) facing Default building facing degrees
Pan camera for (picked player) to the position of (last created unit)Do the same thing when your respawning the player after he/she dies too. |
| 01-16-2004, 06:12 AM | #4 |
Ya i figured it out earlier today, but thanks! I've got my map in Alpha now and some friends are helping me test it. Maybe ill post a link sometime if you wanna check it out man. Ok well cant leave without one question. My map has a cinematic intro (sorta simplified, its my first cinematic in my first map so cant expect much :P) and i was wondering how I'd go about triggering a "Intro skip" trigger for people that dont wanna watch it. -Huh |
| 01-16-2004, 11:37 AM | #5 |
Make a trigger: Variabl = Boolean - Called Intro Code:
Event Player 1 presses Esc Player 2 presses Esc Player 3....... ect ect....... Conditon Action Set intro = False Turn off this trigger Then every so often during your Cinematic you put a check on the variable in the actions: Code:
If
Condtions
Intro = False
Then
Turn off Trigger (Cinamatic trigger 1)
Turn off Trigger (Cinamatic trigger 2)
Turn off Trigger (Cinamatic trigger 3)
Turn off Trigger (Cinamatic trigger 4)
Turn off ......ect ect........
Run trigger (game start)
Trigger (Skip remaining actions)
Else
Do nothingThat way if some hits esc it will turn off all the triggers of the cinematic (if you have more than one) runs the "Game Start" trigger and then skips remaining actions of what ever part of the cinamatic its in. |
| 01-17-2004, 09:27 AM | #6 |
Thanks alot, i really take pride in my intro but after a few times it gets old (ive watched it prob 100+ times while testing it lol). |
