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

Locking camera on a newly created unit

Status
Not open for further replies.
Level 2
Joined
May 1, 2008
Messages
13
ı created a hero pick system...

imagecr4.jpg


and ı want to lock camera for this new unit but ı can't...

(look at the last action for this unit's name..) how can ı lock camera to this hero?

helpme :(
 
Level 2
Joined
May 1, 2008
Messages
13
thanks..ı did it :D...but :( this new unit isn't revive..how can ı revive it ? this is my last question..:D
 
Level 6
Joined
Jul 13, 2007
Messages
173
he means when the unit/hero dies he want it to revive i think

this should do it hope it helps

player respawn
  • Events
    • Unit - A unit owned by Player 1 (Red) Dies
    • Unit - A unit owned by Player 2 (Blue) Dies
    • Unit - A unit owned by Player 3 (Teal) Dies
    • Unit - A unit owned by Player 4 (Purple) Dies
    • Unit - A unit owned by Player 5 (Yellow) Dies
    • Unit - A unit owned by Player 6 (Orange) Dies
    • Unit - A unit owned by Player 7 (Green) Dies
    • Unit - A unit owned by Player 8 (Pink) Dies
    • Unit - A unit owned by Player 9 (Gray) Dies
    • Unit - A unit owned by Player 10 (Light Blue) Dies
  • Conditions
    • ((Triggering unit) is A Hero) Equal to True
    • ((Dying unit) has an item of type Ankh of Reincarnation) Equal to False
  • Actions
    • Wait 4.00 seconds
    • If ((Triggering unit) Equal to (Matching unit)) then do (Unit - Move (Triggering unit) instantly to (Center of hero spawn <gen>)) else do (Unit - Move (Triggering unit) instantly to (Center of hero spawn <gen>))
    • Wait 2.00 seconds
    • If (((Last created destructible) is alive) Equal to False) then do (Camera - Pan camera for (Owner of (Triggering unit)) to (Center of hero spawn <gen>) over 1.00 seconds) else do (Do nothing)
    • Wait 20.00 seconds
    • Hero - Instantly revive (Dying unit) at (Position of (Triggering unit)), Show revival graphics
    • Unit - Set mana of (Triggering unit) to 100.00%
    • If (((Owner of (Triggering unit)) controller) Equal to Computer) then do (Unit - Order (Triggering unit) to Move To (Center of hero spawn <gen>)) else do (Do nothing)
 
Last edited by a moderator:
Level 24
Joined
May 9, 2007
Messages
3,563
Regard.

  • Hero
    • Events
      • Unit - A unit enters (YourRegion1)
    • Conditions
    • Actions
      • Set TempPoint1 = (Center of (YourRegion2))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint1)
This makes leakless. Use in addition to other suggestions.
 
Status
Not open for further replies.
Top