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!
That system is very restricted, because it is used only in Single Player and does not work when the view is near map's border. I don't know JASS so this is my extents.
Press BackBar Config
Events
Map initialization
Conditions
Actions
Set PSE_BackspaceEnable = False
Set PSE_SpaceEnable = False
Set PSE_BackspaceX = 100000000.00
Set PSE_BackspaceY = 100000000.00
Set PSE_SpaceX = 100000000.00
Set PSE_SpaceY = 100000000.00
Set PSE_LockX = 0.00
Set PSE_LockY = 0.00
Set PSE_LockMode = 0
Set PSE_TownHall = PSE_TOWNHALL
Trigger - Add to Press BackBar Event <gen> the event (Time - Every (1.00 / 64.00) seconds of game time)
Press BackBar Event
Events
Conditions
Actions
Set PSE_x = (Target X of current camera view)
Set PSE_y = (Target Y of current camera view)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PSE_LockMode Equal to 1
Then - Actions
Custom script: set udg_PSE_LockX = GetUnitX( udg_PSE_LockUnit )
Custom script: set udg_PSE_LockY = GetUnitY( udg_PSE_LockUnit )
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PSE_SpaceEnable Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PSE_x Equal to PSE_SpaceX
PSE_y Equal to PSE_SpaceY
Then - Actions
Trigger - Run Press Spacebar <gen> (ignoring conditions)
Else - Actions
Set PSE_SpaceX = PSE_x
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.