Search results

  1. C

    Function comes out funny

    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...
  2. C

    How would I go about the math for this?

    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...
  3. C

    Why doesn't this unit get created?

    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...
  4. C

    Smooth periodics - turning off

    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...
  5. C

    globals

    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?
  6. C

    Difference between trigger add action and call function

    Between this: call TriggerAddAction(gg_trg_movingCircleFast, function Trig_dummyCenter_Actions) and this: call function(Trig_dummyCenter_Actions What is the difference?
  7. C

    Why isn't this loop working?

    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...
  8. C

    Help me clean this. There is a syntax error.

    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...
  9. C

    How do I find a spell ID?

    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 )...
  10. C

    Loops and TerraGen - Looping for ...

    [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...
  11. C

    how do i use custom "normal" loading screen

    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
  12. C

    how do I remove this leak?

    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,
  13. C

    i cant host! (you've heard that before!)

    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...
  14. C

    Screen resolution changes randomly

    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
  15. C

    Detecting Backstab/Windwalk

    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!
  16. C

    replace item

    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
  17. C

    Knockback

    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...
  18. C

    Help - Play Wc3 in a Window

    How do I play Wc3 in a Window, my friend says hes done it before on accident but I can't figure out how. Thanks..
  19. C

    IE7 problem

    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...
  20. C

    How should i have this set up?

    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...
Top