HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Help: Camera Trigger

09-05-2007, 08:42 AM#1
chongkeat
I am currently making a map, but is stuck with this problem: How do you make the camera rotate around a unit, like in Azeroth Grand Prix?
i.e. : The game view is like the view from the unit, when it moves left, the view rotates to where the unit is facing.


Can you do it with GUI triggers only? (I don't know JASS)
09-05-2007, 03:00 PM#2
Silvenon
I think you can do it in GUI, but it'd be darn inefficient.

I have no experience in these camera systems, but the only thing I can think of is having a trigger that fires periodically (each 0.035 sec for example) and faces the camera towards the unit's facing.

EDIT1: WELCOME TO THE HIVE WORKSHOP! :)

EDIT2: My dear friends reminded me that this is not the hive workshop, so actually: WELCOME TO WC3CAMPAIGNS!, credits to Rao Dao Zao and SentryIII :P
09-05-2007, 03:28 PM#3
Rao Dao Zao
Quote:
Originally Posted by Silvenon
EDIT: WELCOME TO THE HIVE WORKSHOP! :)
09-05-2007, 03:46 PM#4
SentryIII
Quote:
Originally Posted by Silvenon
EDIT: WELCOME TO THE HIVE WORKSHOP! :)
09-05-2007, 06:44 PM#5
Silvenon
What are you guys doing? Did I say something wrong? Whoooooops!!!! I'm used to saying that there........sry, I don't know what came over me......
09-05-2007, 07:30 PM#6
botanic
Quote:
Originally Posted by Silvenon
EDIT1: WELCOME TO THE HIVE WORKSHOP! :)

He even edited it to say that -.-

as for your problem the easiest way i can think of off the top of my head is having more then one camera following a unit at all times and just switch between one and the other

PS I have never played grand prix so I dunno what you need exactly
09-05-2007, 10:13 PM#7
The Elite
Havnt played Grand Prix but i think that your talking about a 3rd person camera, if so you need
2 triggers.
Trigger 1:
Trigger:
Collapse Third Person Camera
Collapse Events
Map initialization
Conditions
Collapse Actions
Camera - Apply (Current camera) for Player 1 (Red) over 0.00 seconds
Camera - Lock camera orientation for Player 1 (Red) to Footman 0000 <gen>, offset by (0.00, 0.00)
// you may need to change the "offset by" numbers, i don't know what they do
and
Trigger:
Third Person Camera2
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Footman 0000 <gen>) over 0.00 seconds
09-05-2007, 10:40 PM#8
TaintedReality
Does the following action not do what its name implies?

Trigger:
Camera - Lock camera orientation for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00)

I've never used it but it seems like it would do what you're asking.
09-07-2007, 08:54 AM#9
chongkeat
Quote:
Originally Posted by The_Elite
Havnt played Grand Prix but i think that your talking about a 3rd person camera, if so you need
2 triggers.
Trigger 1:
Trigger:
Collapse Third Person Camera
Collapse Events
Map initialization
Conditions
Collapse Actions
Camera - Apply (Current camera) for Player 1 (Red) over 0.00 seconds
Camera - Lock camera orientation for Player 1 (Red) to Footman 0000 <gen>, offset by (0.00, 0.00)
// you may need to change the "offset by" numbers, i don't know what they do
and
Trigger:
Third Person Camera2
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Footman 0000 <gen>) over 0.00 seconds

I tried that, and it works, just change the "lock camera orientation" to "lock camera target".

Thanks! You have been a great help!