• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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