HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera trigger

10-05-2002, 03:59 PM#1
Guest
I am having trouble making the camera follow the units that get teleported. Anyone know how to make the camera follow your troops as they get teleported? space bar seems to make them actually run, to the region area where I want them to teleport to. Also how do I keep the creeps from teleporting with the users?
Thanks in advance.
10-05-2002, 06:57 PM#2
Dinadan87
I don't understand what you mean, could you clarify?
10-05-2002, 09:18 PM#3
Guest
Are you using a waygate or a trigger here?
If you use a trigger (which I would do), you could simply add a condition (boolean) saying:

the triggering unit is a creep (of unit type gnoll, or owned by neutral hostile, think of something appropriate) = equal to false

that will make the teleport refuse creeps.

About the camera thing.. use the pan camera thing or something like that, a camera action that moves the camera to the desired location or position of unit. Or create a camera at the destination, and make an action within the teleport trigger that will apply that camera.
10-05-2002, 11:52 PM#4
Guest
Ok this is what I have.
under map initialization I made a new trigger
called waygates, with these actions.
----waygate 0------
Neutral Building-Enable waygate 0000 <gen>
Neutral Building-Set Waygate 0000 <gen> destination to (Center of Region 000 <gen>)

----waygate 1-----
Neutral Building-Enable waygate 0001 <gen>
Neutral Building-Set Waygate 0000 <gen> destination to (Center of Region 001 <gen>)

My problem is that when any of the player units teleport thru the waygates the camera does not follow them to the region that they end up in.
The players being 1 thru 6 (user controlled) I also want to keep the neutral hostiles from teleporting through with the players. Since user controlled players get chased into the teleporter by neutral hostiles.

Quote:
the triggering unit is a creep (of unit type gnoll, or owned by neutral hostile, think of something appropriate) = equal to false
seems to work btw.
Thanks Teup
I am still at a loss over the camera thing though. Everything I try seems to make the units not tp and try to run to the location of the regions???
10-05-2002, 11:55 PM#5
ChronOmega
unit enters region 00


pan camera for owner of triggering unit to region 00


do that for all the waypoints
10-06-2002, 12:43 AM#6
Guest
Event:
Unit - a unit enters (region1)

Conditions:
(Owner of (entering unit)) Not equal to Neutral Hostile

Actions:
Unit - move (entering unit) instantly to (center of region2)
wait 0.10 seconds
Camera - pan camera for (owner of entering unit) to (position of (entering unit)) over 0.00 seconds

I used something almost identical to this in a RPG map i'm working on. If you want a transporter special effect with this let me know and i'll add it in. And I like to put a circle of power in the region1 and region2.
10-06-2002, 07:56 AM#7
Guest
Peter1x9: THANKS!, the camera works excellent.

Quote:
Event:
Unit - a unit enters (region1)

Conditions:
(Owner of (entering unit)) Not equal to Neutral Hostile

Actions:
Unit - move (entering unit) instantly to (center of region2)
wait 0.10 seconds
Camera - pan camera for (owner of entering unit) to (position of (entering unit)) over 0.00 seconds

Works like a charm.