• 🏆 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!

Having problems with Camera

Status
Not open for further replies.
Level 3
Joined
Dec 16, 2007
Messages
38
Hey everyone!

Can someone help me in a trigger?

Im trying to use an "all random" system that teleports the hero to a random map location and I need the camera goes there and lock on the hero...

Give me an idea please!

( Forgive my bad English, I'm Brazilian =] )
 
Level 3
Joined
Dec 16, 2007
Messages
38
I'm trying this way since I created the map, but it's not working :/
This is the way I "wrote" there...

Set Random_Hero = (Random integer number between 1 and RandomTotal_All)

Unit - Create 1 Heroes_All[RandomData_All[Random_Hero]] for (Picked player) at (Center of Respawnregion[(Random integer number between 1 and 10)]) facing Default building facing degrees

Camera - Lock camera target for (Picked player) to (Matching unit), offset by (0.00, 0.00) using Default rotation


What is wrong with it?

Thx..
 
  • Camera - Lock camera target for (Picked player) to (Last created unit), offset by (0.00, 0.00) using Default rotation

[trigger="Almost. It should be"]
Camera - Lock camera target for (Owner of (Last created unit)) to (Last created unit), offset by (0.00, 0.00) using Default rotation
[/trigger]
 
Level 3
Joined
Dec 16, 2007
Messages
38
Yeah, I tried and it works...

Thank u and Jacek for the help... =]

EDIT---

Hey Jacek, u asked in chat about placing undead building in non-blighten terrain...

Ok, i know how to do this xD... so simple!..

To make undead building not require blight, go to Object Editor.. go to the building settings and in "Pathing - Placement Prevented By - " here u remove the Unblighted "setting"... just this =]
 
Last edited:
Status
Not open for further replies.
Top