• 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.

Camera and skill question

Status
Not open for further replies.
Level 2
Joined
Jan 1, 2009
Messages
20
How do you make a camera rotate according to your unit's direction?
And also, is there a skill that can damage the area in front of the unit when you activate the skill?

Help would be much appreciated^^...
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Use:
  • Actions
    • Camera - Lock camera target for Player 1 (Red) to (Triggering unit), offset by (0.00, 0.00) using The unit's rotation
For the first. And use:
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Thunder Clap
  • Actions
    • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
    • Wait 0.50 seconds
    • Unit - Remove (Last created unit) from the game
For the other one. Give the unit a thunder clap with no effect and no targets, also create a dummy and give it a shockwave to do the damage.
 
Status
Not open for further replies.
Top