| 10-16-2003, 01:07 AM | #1 |
ok in my game i have a prob with the triggers. i know how to make your camra lock to a unit and move with keys and such, but i want to do that with a unit that you pick from a dialoge menu. i have 4 units to choose from and this is going to be multi player so i cant make units and hide them(unless this is the only solution) |
| 10-16-2003, 01:18 AM | #2 |
Have a unit array hero[], whatever player 1 chooses (button pushed in the dialog), create that unit at <wherever> for player one, then: hero[1] = last created unit lock camera to (hero[1]) for (player 1) Now do that for each player. |
| 10-16-2003, 02:29 AM | #3 |
couldn't you do all that but instead of using variable 1 player 1 next trigger couldn't you just use player number? |
| 10-16-2003, 02:33 AM | #4 |
Yeah, either way works fine, it is basically a preference thing |
