• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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