The function returns an angle based on the key pressed so I'm using it to return the angle of the unit at any given time during it's rotation while a key is pressed. So A button would return (UnitFacing + 2) and D button would return (UnitFacing - 2)
Hello everyone, I'm kind of new to programming and new to Galaxy scripting so bare with me if the solution seems obvious.
I'm trying to rotate a unit (Hellion) and have it move in the direction it's facing by modifying certain functions in rrowland's WASD library (thank you rrowland :) ) however there is a bug that I just can't figure out.
From what I understand; lets say the unit (Hellion) is facing 90 degrees, the code should return 90 degrees and move the unit in that direction when I press 'W'.
What actually happens is the Hellion continuously rotates counterclockwise on the spot. I think I'm missing some key information but it doesn't make any sense. But at least it's rotating :3
Hello everyone. I've been trying to find a way to set the life armor of a specific unit through the trigger editor. I've checked the presets under Set Unit Property and it has Life and Maximum Life, but not life armor. Any ideas?
0
Map developers, please stop using this method for the loading screen.
1) The player does not know how long to wait.
2) AFK Players who do not press a key to continue stalls the game for active players and the only way out is to exit starcraft
3) There are players who deliberately leave key unpressed to ruin the game
0
The function returns an angle based on the key pressed so I'm using it to return the angle of the unit at any given time during it's rotation while a key is pressed. So A button would return (UnitFacing + 2) and D button would return (UnitFacing - 2)
0
Ah I got it, thanks.
0
Hello all, just a quick question.
If the Movement of a unit is 3.0, what does this translate to on the terrain?
Also what is the unit of measurement for radius?
0
Hello everyone, I'm kind of new to programming and new to Galaxy scripting so bare with me if the solution seems obvious.
I'm trying to rotate a unit (Hellion) and have it move in the direction it's facing by modifying certain functions in rrowland's WASD library (thank you rrowland :) ) however there is a bug that I just can't figure out.
Code Snippet
My modifications:
lv_tempAngle = UnitGetFacing (libWASD_gv_controlledUnits[lp_player]);
return lv_tempAngle;
Function: getWASDAngle
From what I understand; lets say the unit (Hellion) is facing 90 degrees, the code should return 90 degrees and move the unit in that direction when I press 'W'.
What actually happens is the Hellion continuously rotates counterclockwise on the spot. I think I'm missing some key information but it doesn't make any sense. But at least it's rotating :3
0
Could Set Game Speed be what you're looking for?
0
Sadly catalog value only takes string inputs so it doesn't work for Life Armor value :(@Atl0s: Go
0
Hello everyone. I've been trying to find a way to set the life armor of a specific unit through the trigger editor. I've checked the presets under Set Unit Property and it has Life and Maximum Life, but not life armor. Any ideas?