• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Lock 'n Steady

Status
Not open for further replies.
Level 9
Joined
Apr 4, 2004
Messages
519
So once again I need help with a few triggering.

I can't seem to figure out how to lock a camera without a specific unit. I'm just trying to make it lock on a camera and not be able to move it unless the player orders a certain unit to move to a region.

Any ideas on how to make this work will be highly appreciated.
 
Level 2
Joined
Jun 10, 2007
Messages
19
Camera

I dont quite understand what you are saying. Do you mean that
  • Event-
  • Map Initialization
  • Conditions-
  • None
  • Actions-
  • Camera-Lock Camera target to region.
  • Cinematic-Disable User Control for (What player you want)
  • Trigger-Turn On (Trigger 2)
  • Event-
  • Unit-A unit enters Stop Camera
  • Conditions-
  • None
  • Actions-
  • Camera-Pan Camera to Entering Unit
  • Cinematic-Enable User control for (What ever player u want)
I hope this is what u need :):infl_thumbs_up:
 
Level 9
Joined
Apr 4, 2004
Messages
519
Well, something in that direction. But by disabling user control I can't move the unit to the "Stop Camera" region?
 
Ah, I had a similar problem to this a while ago. Lets say you have two cameras (made in WE), Cam1 and Cam2, both centered on Reg1 and Reg2, respectively. Lets also say that when Hero enters a region, the appropriate camera is locked on that region, but if he leaves one then the camera is reset to the regular game camera.

CurrentCamera is a camera variable.

[trigger="Trigger for Reg1"]Region 1
Events
Unit - A unit enters Reg1
Conditions
(Triggering Unit) = Hero 0001
Actions
Set CurrentCamera = Cam1
Camera - Apply Cam1 for Player 1 over 0.00 seconds
Trigger - Turn on CameraLock[/trigger][trigger="Trigger for Reg2"]Region 2
Events
Unit - A unit enters Reg2
Conditions
(Triggering Unit) = Hero 0001
Actions
Set CurrentCamera = Cam2
Camera - Apply Cam2 for Player 1 over 0.00 seconds
Trigger - Turn on CameraLock[/trigger][trigger="Camera Locking Trigger"]Camera Lock (Initially off)
Events
Time - Every 0.20 seconds of game time
Conditions
Or (Multiple Conditions)
Conditions
(Hero 0001 is in Reg1) Equal to True
(Hero 0001 is in Reg2) Equal to True
Actions
Camera - Apply CurrentCamera for Player 1 over 0.10 seconds[/trigger][trigger="Camera Reset Trigger"]Camera Reset
Events
Unit - Hero 0001 leaves Reg1
Unit - Hero 0001 leaves Reg2
Conditions
(Hero 0001 is in Reg1) Equal to False
(Hero 0001 is in Reg2) Equal to False
Actions
Trigger - Turn off Camera Lock
Camera - Reset the game camera for Player 1 over 0.00 seconds
Set TempPoint (point variable) = Position of Hero 0001
Camera - Set Current Camera's (not the variable) target to TempPoint
Custom script: call RemoveLocation ( udg_TempPoint )[/trigger]

Hope this helps.
 
Level 9
Joined
Apr 4, 2004
Messages
519
**EDIT**

I figured it out.

What's the trigger for the Set TempPoint (point variable) = Position of Hero 0001?
 
Last edited:
Level 9
Joined
Apr 4, 2004
Messages
519
^ Edited before I saw your post. :p

But the question remains: What's the trigger for the Set TempPoint (point variable) = Position of Hero 0001?
 
Status
Not open for further replies.
Top