Script help

allen204

New Member
Reaction score
1
Whats wrong with this script?
Trigger:
  • call ReviveHeroLoc(DEAD_HERO, GetPlayerStartLocationLoc(GetOwningPlayer(GetDEAD_HERO()), false)


I'm trying to let a hero revive to its start location, but the script above there isn't working.
 

allen204

New Member
Reaction score
1
okay, theres a new problem that code you gave me doesnt really revives the hero where the start locations are, unfortunately it makes an error instead. Xx
 

allen204

New Member
Reaction score
1
Trigger:
  • Events
    • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local timerdialog WINDOW
      • Custom script: local integer HEROWAIT
      • Custom script: local timer OURTIMER
      • Custom script: local unit OURHERO
      • Custom script: set OURHERO = GetDyingUnit()
      • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
      • Custom script: set OURTIMER = CreateTimer()
      • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
      • Custom script: call CreateTimerDialogBJ( OURTIMER, GetPlayerName(GetOwningPlayer(OURHERO)) )
      • Custom script: set WINDOW = GetLastCreatedTimerDialogBJ()
      • Custom script: call TimerDialogDisplayForPlayerBJ( true, WINDOW, GetOwningPlayer(OURHERO) )
      • Custom script: call PolledWait( HEROWAIT )
      • Custom script: call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayableMapRect()), true )
      • Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
      • Custom script: call DestroyTimerDialog(WINDOW)


This was an given here http://world-editor-tutorials.thehelper.net/revive.php but what I want is that the heroes revive in their perspective start locations. :D
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok, so do this then:
Trigger:
  • Custom script: call ReviveHeroLoc(OURHERO, GetPlayerStartLocationLoc(GetOwningPlayer(OURHERO)), true )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top