Recent content by Lehona

  1. L

    Return bug

    Isn't it just about "false positives" or are they already properly fixed? The statement "return" two times in a function already caused Warcraft to be not abled to start the map, if I remember correctly.
  2. L

    What is a private static anyway?

    If a unit has at least 0.405 hp, it's still alive.
  3. L

    Greatest/least integer/real gets picked.

    votes = normal_votes if easy_votes > votes votes = easy_votes if hard_votes > votes votes = hard_votes Now do whatever you want with that variable 'vote'.
  4. L

    bj_CONSTANT_REALS

    Doesn't use Warcraft 3 the 32 bit IEEE 754 floats standard? I thought everyone used it in that time... That would mean its actually 1 bit sign (negative/positive), 8 bit exponent and 23 bit mantissa (In reality its ((-/+) mantissa * 2^exponent)). That would mean the range 9 decimal...
  5. L

    Pulling a unit to another

    Got that Sinus and Cosinus-function to work with the Taylor-Series.
  6. L

    Pulling a unit to another

    Didn't know we even have one, sorry :)
  7. L

    Pulling a unit to another

    Actually it seems not to work, here is what I've got (its another language, so read the comments^^) var int herX; herX = her._zCVob_trafoObjToWorld[ 3]; // Get the x of the hero var int itemX; itemX = Telekinese_Item._zCVob_trafoObjToWorld[ 3]; // Get the X of the Item (which I want to...
  8. L

    (Noob Question) "return" in loops.

    Return ends the function.
  9. L

    Pulling a unit to another

    Is there a way to get the Atan2-value without the function? I know, this is the place for questions about JASS, but I need to do it without Atan2 (In another language, which doesn't provide Atan2) - maybe a formula as an alternative to Atan2? Anyway, thanks for now :) (+rep)
  10. L

    Undeclared variable problem

    And FirstOfGroup-loops get destroyed by so-called ghost-units which are references within a group to units which are already removed from the game. FirstOfGroup will return null for them, though the group isn't empty.
  11. L

    Pulling a unit to another

    If I just have the X- and Y-coordinates, how would be the function to "pull" unit A to Unit B? Sorry, but I suck at 2D-Math =D
  12. L

    Get the number of the variable of an array?

    Iterate through the array.
  13. L

    Undeclared variable problem

    You actually can't.
  14. L

    Undeclared variable problem

    Instead of If (MyFunc()) then write If (WhatShouldBeTrue == true) then So in your example: function Trig_Elemental_Vortex_Func011Func001A takes nothing returns nothing if (( IsUnitType(GetEnumUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false) and ( IsUnitAlly(GetEnumUnit()...
  15. L

    Local variables in drag-and-drop scripting

    Waiting here for an answer or even trying to do complex things without the use of JASS takes mostly more time than just learning (v)Jass. Noone wants you to be a master of it, but especially if you already know something about programming it's very easy and fast to learn.
Top