HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with 3rd person view...

12-27-2002, 07:43 PM#1
zealrage
Hi,
Well ive been like wondering how to do this trigger for about 2 days or so and well i am currently making an rpg right now and well my idea is when a player select his hero, the hero spawns and then the view is changed for that player behing the hero in a 3rd person view and the view changes automaticly when the hero turns... So in a way if the hero face turns 90degrees left the camera for that player will follow the hero in a 3rd person view so well thats it :D ive seen this before in a game called "Death Match RPG" but i cant seem to find it annywhere to help me out so if anny one can help me please do or send me an email at "[email protected]"

Thx you :D
12-27-2002, 08:18 PM#2
Gumby_Pornstar
Hey,

When the hero is selected, make the camera of the selecter change to a pre-set camera that is the height, and distance, from the hero that you desire.

Then, every .01 seconds relock the camer to the unit, and change the camera angle to a REAL VARIABLE named whatever (herosight or something, you choose)
In that same trigger, for the first action set the variable (in this case herosight) to the angle that the hero is facing.

There you have it. Someone correct me if that isn't right.
12-27-2002, 08:40 PM#3
zealrage
Well, could you give me the exact trigger i mean the "Action" exactly, give estimated numbers in it i just went the correct actions for it so i can just make it easely and work for 2hours cuz i realy suck so specific please if its not too much to ask... :D
12-27-2002, 09:42 PM#4
Gumby_Pornstar
Ok, I'll type out what I did for one of my maps:

The first trigger depends on how you do your map, let's pretend you have it set up so that a wisp enters a region, which in turn gives you an Archmage.

Event
Unit enters region[Archmage]

Action
1 Remove entering unit from the game.
2 Create 1 Archmage for owner of entering unit at center of [team 1 start region] (or whatever)
3 Apply camera object [newview](this is the camera that you fixed to be above the character's head) for owner of entering unit over 0 seconds.
4 Lock camera target for owner of entering unit to last created unit (offset 0,0, Default rotation)
5 Turn on trigger "cameralock" (this is a trigger that initially is off)

CAMERALOCK:

Event
Time- Every .01 seconds of the game

Action
1 Camera- set Player (whoever) 1's camera rotation to [angle] (this is a real variable that will be set next) over .01 seconds
2 Set [angle] = Facing of Random unit from units owned by Player 1


What this will do is create a camera above the hero's head, like you want, that will turn as the character does. The only draw back of the above stuff is the player can only ever own 1!!! unit. There are better ways to do it, and I'm sure someone else will tell you, or you will figure it out.

Hope you made sense of that, and it helps you out.
12-28-2002, 12:11 AM#5
zealrage
Ok well all players in my map own 2 units so what do i do? And in my map i have a beacon (2nd unit) to swap from hero to other unit and go back to hero... So well i'm not realy sure now how to do that... so if you have anny other ideas please provide them for me oh annd yes if you could do the trigger correctly for me i could copie paste it to my map and set what ever is to be set cuz right now there are 2 actions i'm not realy sure if they are correct
12-28-2002, 12:49 AM#6
Dinadan87
Instead of using a beacon, use a text command instead. If you using a third person view you won't be able to see the beacon in order to use it, so text commands would work better.
12-28-2002, 12:53 AM#7
zealrage
Well lol ive already planned to do that and it is already in my map :p... But i pretty much understand every triggers but realy the camera and view of units, i realy have a hard time doing those and well i just tryed how you said and lol it realy didn't look good and pretty much didint work so well i dunno what to do emote_sweat
12-28-2002, 05:13 AM#8
Dinadan87
Download the camera system demo from the DMMOD website and look at the triggers in it, they work pretty nicely.

[edit] My bad, they took it off the website when they released the full version.
12-28-2002, 05:16 AM#9
Dinadan87
Ok, this is the camera demo. Check it out.
12-28-2002, 05:38 AM#10
zealrage
Wow thx alot! You have done very much for me and if you need annything some how some time please ask me :D
Thx you dude!
12-28-2002, 05:42 AM#11
zealrage
Yes one more thing if i may ask, how come in the world editor the camera is not set to look at the grunt but in fact its very far away from it looking far...
12-28-2002, 07:42 PM#12
Guest
I have a quick question relating to this, has anyone seen or made any triggers that allow for a person to control units by using the arrow keys? I tried that camera map and it is very annoying to try and point and click everywhere with the camera constantely moving. So im just curious if keyboard movement has been implemented.
12-28-2002, 08:51 PM#13
Dinadan87
Quote:
Originally posted by zealrage
Wow thx alot! You have done very much for me and if you need annything some how some time please ask me :D
Thx you dude!

Don't thank me, mikititan made that camera trigger so thank him.

Quote:
Originally posted by zealrage
Yes one more thing if i may ask, how come in the world editor the camera is not set to look at the grunt but in fact its very far away from it looking far...

Don't worry about it in WorldEdit, it doesn't test cameras very well. As long as it works in the game there shouldnt be any problems, right?