HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to lock camera to the unloaded unit?

05-13-2007, 11:47 PM#1
The Curse
Well I want to lock the camera to units as they get into "vehicles" and as they get off. Note that I'm trying to do this in GUI.

Locking the camera to the vehicle it's getting loaded into is fairly easy to do.

Trigger:
CameraLockLoading
Events
Unit - A unit is loaded into a transport
Conditions
Actions
Camera - Lock camera target for (Owner of (Loading Unit)) to (Transporting Unit), offset by (0.00, 0.00) using Default Rotation
Now, as to the Unloading Camera Lock...

I've noticed that there is no Event Response - Unloading unit.

So how should I lock the camera to the units that is getting unloaded from a zeppelin?
05-14-2007, 12:01 AM#2
MercyfulJester
When the player selects the unboarded unit?

Or perhaps with order comparison?

Trigger:
Trigger
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Issued order) Equal to (Order(unboard))
Collapse Actions
Do nothing

Don't know if it'll work.


Edit: This works

Trigger:
Trigger
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Unit-type of (Ordered unit)) Equal to Siege Engine
(Issued order) Equal to (Order(unload))
Collapse Actions
Game - Display to (All players) the text: Camera Unlocked
05-14-2007, 07:48 AM#3
The Curse
Your help is very much appreciated.

However, there might have been a slight misunderstanding.

I'm trying to lock the camera (which was locked to the zeppelin prior to the unloading) to the unit that was just unloaded. How do I make the game understand which unit its supposed to lock the camera to after the unloading?
...
Is this even possible?

Note that the map I'm trying to apply this trigger for is one where the player only controls one unit (sort of like RPG).
05-14-2007, 08:48 AM#4
Tide-Arc Ephemera
There is an unloaded unit detection in GUI right? (I haven't looked into this situation yet)
05-14-2007, 11:25 PM#5
The Curse
I don't think there is.
05-15-2007, 12:36 AM#6
MercyfulJester
Ah, I just thought you wanted to unlock the camera. How about this...

Trigger:
Trigger
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
(Issued order) Equal to (Order(unload))
Collapse Actions
Camera - Lock camera target for (Owner of (Target unit of issued order)) to (Target unit of issued order), offset by (0.00, 0.00) using Default rotation


Edit: worked for me. Then again I might me misunderstanding something again.
05-16-2007, 12:00 AM#7
The Curse
Yay. It worked.

Thanks. +rep.