• 🏆 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] get the camara to the hero?

Status
Not open for further replies.
Level 5
Joined
Nov 6, 2008
Messages
150
hi how can i get when i "transport" an unit to another place then the camara follow with him? a were simple qustion or i think so:wink:
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
  • Move :D
    • Events
      • Time - Every 0.01 seconds of the game.
    • Conditions
    • Actions
      • Player Group - Pick every player in Map or something :D
        • Loop Actions
          • Camera - Pan camera over (Unit Position of TRANSPORT[Player number of Picked Player])
Something like that, make a Unit variable called TRANSPORT and make it array.

then the boarding trigger

  • Boards
    • Yourevent
      • Ima lazy here :D
    • YourCondition
    • Actions
      • Set TRANSPORT[Player number of (Owner of Triggering Unit)] = Loading unit
      • ------ ACTIONS -------
and when unboarding

  • Set TRANSPORT[Player number of (Owner of Triggering Unit)] = No Unit
Think it should work :D
 
Level 5
Joined
Nov 6, 2008
Messages
150
i have problem with find this part:
Camera - Pan camera over (Unit Position of TRANSPORT---->[Player number of Picked Player]<-----) i have try to find it on another trigger but i cant
edit: transport is that an unit variable or what?
 
Level 9
Joined
Sep 8, 2004
Messages
633
try to find Player Number under player when looking for the array

Actually, I don't think he's using a transport, but just the function "Unit - Move", not sure though. Do take into account that he doesn't know basic triggering.

I actually have that kind of problem too. So... I ask 1 question. What happens when the unit ,that what the camera will follow, dies?

The camera gets locked on the corpse of the dying unit and will remain there until you tell it otherwise.

So yeah, I would advise a trigger that resets the camera where the "followed" unit dies.
 
Level 12
Joined
May 21, 2009
Messages
994
You mean like a camera locked to unit ?? if so pretty easy then :)

  • Camera
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • -------- 12 is the number of players you have just make it to the number of players you have --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Camera - Lock camera target for Player 1 (Red) to unit[(Integer A)], offset by (0.00, 0.00) using The unit's rotation
          • -------- You can also use defeault rotation --------
          • Camera - Lock camera target for Player 1 (Red) to unit[(Integer A)], offset by (0.00, 0.00) using Default rotation
 
Level 5
Joined
Nov 6, 2008
Messages
150
that was i need is what adikuz has made that is just via region and that seems simple(=
but thanks for replay and trying to help a noob like me(=
 
Level 12
Joined
May 21, 2009
Messages
994
If i understand it right you wanna pan the camea to a region ?? If so do this trigger:
  • Camera
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Camera - Apply Camera 001 <gen> for Player 1 (Red) over 0.00 seconds
      • -------- If its for every player do this --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Camera - Apply Camera 001 <gen> for (Player((Integer A))) over 0.00 seconds
 
Level 5
Joined
Nov 6, 2008
Messages
150
no thanks adikuz trigger is good working(=
but if you want me to try yours could you then make a demo?
 
Status
Not open for further replies.
Top