function moveUnit takes nothing returns nothing
local location currentPos
local real slideFacingDeg
local real currentSlideDeg
local location currentPosOff
local real posOffX
local real posOffY
local real AcosRad
local integer resultDeg
local real...
I want to make system that basically says
if move angle is > facing angle, set move angle = move angle - 1
else set move angle = move angle + 1
There is a problem tho. If move angle is 350 and facing angle is 10, it will turn the wrong way (i think)
So how would I go about setting this...
globals
unit slideUnit
integer i
endglobals
function moveInCircle takes nothing returns nothing
local location currentPos = GetUnitLoc(slideUnit)
local location currentPosOff
local real posOffX
local real posOffY
set i = (R2I(GetUnitFacing(slideUnit)))
set...
As I noted in this thread - http://www.thehelper.net/forums/showthread.php?t=107530
I turned .1 second wait action into a more final draft of every .03 game seconds.
Here is my code currently.
globals
unit centerUnit
unit rifleAttacker
unit footAttacked
integer i
endglobals
function...
I'm using this code in a function.
globals
unit centerUnit
unit rifleAttacker
unit footAttacked
endglobals
Is this something normal jass can do or is it only working because I have JNGP with vJass?
Between this:
call TriggerAddAction(gg_trg_movingCircleFast, function Trig_dummyCenter_Actions)
and this:
call function(Trig_dummyCenter_Actions
What is the difference?
Or perhaps a better question, why isn't the function with the loop being called correctly?
function moveInCircle takes unit centerUnit, unit rifleAttacker, unit footAttacked returns nothing
local integer i = 0
local location posCenter = GetUnitLoc(centerUnit)
local location...
call SetUnitX(rifleAttacker,(GetLocationX(PolarProjectionBJ(GetUnitLoc(centerUnit)),256,i,270))
I'm new to jass and it will take me ages to debug this.
I'm pretty sure all I need to do is move parentheses around, if anyone could help me out i'd be grateful.
Thank you,
edit - i may have...
I have this function:
function paladinCharm takes nothing returns nothing
local unit targetUnit = GetSpellTargetUnit()
local unit castingUnit = GetSpellAbilityUnit()
local unit healDummy
call PauseUnitBJ( true, targetUnit )
call SetUnitLifeBJ( targetUnit, 1.00 )...
[GUI] Loops and TerraGen - Looping for >30 not working?
Is there something wrong with my math? Because when I create a loop that goes from 0-359 or 3 loops from 0-120, 121-240, 241-359, it still just seems to work from 0-30 or so.
Here is my trigger:
terrain2
Events
Conditions...
I want to use the normal loading screen so you can see when everyone is done loading, but I want to customize it and put text or whatever on it. Anyone know how?
Thanks
According to leakchecker this is a leak:
Set pointFootyLeaderLastPOS[(Integer B)] = (Position of unitFootyLeader[(Integer B)])
This is in a trigger that runs 100 times per second so it's important I get it fixed.
Thanks,
okay so i got a new computer and a new router since the last time I hosted wc3, and for some reason I can't get it to work now.
http://filesmelt.com/Imagehosting/pics/cbe6f2fe913b45e9215b3cabe806ef87.png
http://filesmelt.com/Imagehosting/pics/86a8206dec1dffd6c58108804453cf19.png
Can...
Sometimes when I restart my computer (Windows XP Home SP2) the resolution resets to 1152x864 (originally 1920x1080)
Graphics card is an eVGA nVidia eGeForce 6600GT
Thanks for any help
I'm trying to create an ability *triggers only* that will detect when a unit (special ops/scout type) backstabs an enemy (with windwalk)
I will do the effect/actions later I just need to know what events/conditions to use to detect it.
Thanks!
haven't been here in awhile..
i'm looking for a good way to replace items.
similar to the unit - replace unit effect, i'm trying to replace an item...
google just gives me WoW stuff...
any help would be appreciated.
peace
I've been trying to get an ability for my map to work, the ability - War Shout.
Whats it do?
75 dammage and knockback to any unit within 300 gu.
It works great! But it lags!
Interpolation time is set to .04 seconds, but a visible lag is still there!
Trigger 1 -
War Shout
Events...
Ive got this error that has been coming up since i got IE beta 2. altheway up until now, just havent dealt with it yet, since im using Avant browser.
When i launch IE7 it says this:
im assuming i just need to re-dl the file and somehow install it. can anyone help?
(ps) when i click continue...
Im making a "Campain" (its not an actual campain, its a set of regular maps)
What i have so far is this:
2 Hero Models
15 Weapon Models
5 Armor Models
How should I set this up... shud i have 150 seperate models, 2 models and 20 attachments, or 2 models and 75 attachment combos... or...