• 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

Status
Not open for further replies.
Level 16
Joined
Aug 20, 2009
Messages
1,554
is there any ways to lock a camera to a panned camera?

like, i want it to pan on this camera 1, but then, i don't want it to be moving away when the cursor touch the end, i want it to be locked to the camera, if so, how?

anyways, i have another thing i want to know,

how do you make a damage blocker?..like abaddon's apotic shield,
it block damage completely, 100%.

if you add up HP when unit is damaged,with the equal amount of damage, the unit will still die if i do a 1000 damage chain lightning, if the unit has 300 life, and if it survived, the unit will gain HP too, 700 life.

can anyone make an example map?. thx a lot~
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Camera - Pan camera for Player 1 (Red) to ((Target of current camera view) offset by 1.00 towards 0.00 degrees) over 100000.00 seconds
This locks the camera. But you can break it by selecting a unit and clicking arrow keys. But you can get around that. Test how it works. It leaks.

Another option is to create a dummy unit and:
  • Camera - Lock camera target for Player 1 (Red) to *unit*, offset by (0.00, 0.00) using Default rotation
and turn this on:
  • Untitled Trigger 047
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Distance to target to 800.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 320.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to 0.00 over 0.00 seconds
Those are Camera - Set camera field



To block damage, edit Hardened Skin ability. Set min damage to 0 and max damage to something high. Set check dependencies to false to make it available immediately.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Yeah, you can do it like this.

  • Untitled Trigger 045
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set p1 = (Center of Region 004 <gen>) // Change to whatever needed
      • Camera - Pan camera for Player 1 (Red) to p1 over 100000.00 seconds
      • Custom script: call RemoveLocation(udg_p1)

Apparently Hardened Skin doesn't block spell damage. But there's an item ability, Spell damage reduction. Set the damage reduction to 1.00 and give it to your unit to make it not take damage from spells.
 
Status
Not open for further replies.
Top