HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

viewing unit

10-31-2004, 06:09 PM#1
riv690
How would I make it so that you view the unit in like a ground level view rather than overhead? Naturally you view the whole map and the units from an over head perspective. Well I want to view everyting from a ground level perspective. Is there any way to do that? A reply would be appreciated.
10-31-2004, 06:24 PM#2
HEZZA
Ok make a camera on the editor. Adjust it to level you want Then you run a trigger.

First off the camera:

The best way to set the camera to the view you want is to Select it, press CTRL and Right click, hold these in and move ur mouse about. Once ur happy with ur angle on the map, release and make sure u have the camera in the list selected and press "Set Camera to Current View"

Then on melee initliasition just do

Camera - Apply "Cammera000" for player1(red) or if you want everyone to see that view

Player group Pick every player in (allPlayers) - Camera Apply "Cammera000" for Picked player over 0.00 seconds.

Hope thats cleared it up
10-31-2004, 06:54 PM#3
xxxSpikexxx
that's the usual way to do this but if a player presses delete, insert or moves the mousewheel it will be reset to the standart camera ...

to block that i usually make a periodic trigger that sets all the camara values to the ones i need.
10-31-2004, 07:25 PM#4
riv690
Quote:
Originally Posted by xxxSpikexxx
that's the usual way to do this but if a player presses delete, insert or moves the mousewheel it will be reset to the standart camera ...

to block that i usually make a periodic trigger that sets all the camara values to the ones i need.
How would you make a period trigger with that?
10-31-2004, 08:28 PM#5
Rafael Br
Like this:
Events - Every 0.50(or less) seconds on the game
Action - Player group Pick every player in (AllPlayers) - Camera Apply "Cammera000" for Picked player over 0.00 seconds.
Just make a camera like HEZZA said.
10-31-2004, 08:31 PM#6
HEZZA
Quote:
Originally Posted by Rafael Br
Like this:
Events - Every 0.50(or less) seconds on the game
Action - Player group Pick every player in (AllPlayers) - Camera Apply "Cammera000" for Picked player over 0.00 seconds.
Just make a camera like HEZZA said.


Would that not set the view to that camera all the time, lets say if u didnt set the camera to lock on a unit and u planted the camera somewhere at the top of map. Would it not just go back to the top of the map every 0.5 seconds?
10-31-2004, 08:35 PM#7
Rafael Br
It will set the camera to that at every second, for preventing it from changic the camera with the mousewhell or other things, I don't have WE here now, maybe there is a more simple way.
10-31-2004, 11:17 PM#8
riv690
I have my starting locations placed on my map and the starting units, but whenever i actually load the map none of the units show and the map looks like a big cloud with no units. But I have them placed in the world editor. Anyone else encounter this and how do I fix it?
11-01-2004, 12:39 AM#9
riv690
Quote:
Originally Posted by riv690
I have my starting locations placed on my map and the starting units, but whenever i actually load the map none of the units show and the map looks like a big cloud with no units. But I have them placed in the world editor. Anyone else encounter this and how do I fix it?

I figured out the problem and it was that my units can't be seen at night for some reason. Any causes for this?
11-01-2004, 06:20 AM#10
riv690
But how would i set the trigger up so that the camera follows the unit around the whole time???
11-01-2004, 12:42 PM#11
oNdizZ
Well, why use a camera? you can set the stuff with triggers, and then loop that trigger.
hmm ill show you :P

Untitled Trigger 001
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Camera - Set Player 1 (Red)'s camera Distance to target to 500.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Z Offset to 200.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.00 seconds


this will make the most effects as a camera got. dunno if you'll need more. If you want to lock and follow a unit:

Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation

you will of course need some other triggers for switch the unit you wanna follow if you now want that :P

Good Luck and Have Fun
11-01-2004, 10:23 PM#12
riv690
Quote:
Originally Posted by oNdizZ
Well, why use a camera? you can set the stuff with triggers, and then loop that trigger.
hmm ill show you :P

Untitled Trigger 001
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Camera - Set Player 1 (Red)'s camera Distance to target to 500.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Z Offset to 200.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.00 seconds
Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.00 seconds


this will make the most effects as a camera got. dunno if you'll need more. If you want to lock and follow a unit:

Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation

you will of course need some other triggers for switch the unit you wanna follow if you now want that :P

Good Luck and Have Fun
Thank you very much, but what does the offset coords in the lock camera target trigger do?
11-02-2004, 12:55 AM#13
riv690
Hm im trying to get the camera to lock onto the units back and always face the units back even if the unit changes direction? Any answers would be appreciated.
11-02-2004, 05:36 PM#14
riv690
......bump...
11-02-2004, 09:27 PM#15
oNdizZ
First of: dont doubble post unless you want some (bad) attention(how do you spell that?!) from the admins

Second: The offset form z you talked about is the discance between groundlevel and the level you want your camera on

Third: To do it like you want it to be:

Event
Time stuff - Every 0.01 (you can change the 0.01 to 0.1 if you want)

Actions
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of (Your Unit)) over 0.00 seconds



One trigger like that for every player. If the unit isn't on the map from the beginning, make a variable for it. And then triggers to turn this action on and off.

this is the way i know of.

//oNdizZ