Search results

  1. Trollvottel

    Do we need to nullify a local unit if it's going to get removed?

    local unit u = GetLastCreatedUnit() call RemoveUnit( u ) set u = null This is the correct order. You should not set the variable to null before removing the unit (which isnt possible if the variable is already null).
  2. Trollvottel

    A great mystery needs to be solved

    Didnt know the name of it either. Wikipedia says it is called "Aufreißlasche". Makes sense.
  3. Trollvottel

    Funny Picture Thread Archive - The OG!

    What happened there? Oo
  4. Trollvottel

    Check if unit is in front of certain unit

    You can aswell just check if it is smaller than 0 and if so do Real[1] = 360+Real[1]
  5. Trollvottel

    minimap ingame

    http://wc3r.forumcircle.com/viewtopic.php?p=157171 Short tutorial i found. Basically you just import it and change the name to war3mapMap.tga Of course you need the right format for it before.
  6. Trollvottel

    Add local special effect on target

    (Last created special effect) refers to the BJ-function of AddSpecialEffect where the last created effect is stored in a global variable. You have to save it directly like this: set udg_TargetUnit_Effect[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1] = AddSpecialEffectTarget(s...
  7. Trollvottel

    Check if unit is in front of certain unit

    You Should know that (Angle from Point[1] to Point[2]) returns values between -180° and 180° (as far as i remember) so you should convert that to 0-360° first of all. Then you should get the difference between Real[1] and Real[2] and get it's absolute value. then you can check if it is smaller...
  8. Trollvottel

    Game wasn't found - Problem after saving

    Make sure you save the map before closing it so the jasshelper can compile the code etc.
  9. Trollvottel

    Another simple math question.

    Ye, thats how the Atan2 (and Atan) function works. Atan2(.caster.getY() - .Y, .caster.getX() - .X) Here .Y is the Origin and .caster.getY() is the target. Switch the positions so it is Atan2(.Y -.caster.getY(),.X - .caster.getX()) or just do Atan2(.caster.getY() - .Y, .caster.getX() - .X) + bj_PI
  10. Trollvottel

    Another simple math question.

    remove bj_RADTODEG from you calculations. It converts the angle vom radians to degrees ( Atan2 returns radians) but Cos and Sin take radians. bj_RADTODEG is just for GUI users. Just remember 2*Pi := 360°
  11. Trollvottel

    Snippet Vectors

    Question: Am i missing something or is this: method angle takes Vector3D v returns real return Acos(dotProduct(v)) endmethod wrong? normally cos(a) = dotproduct / product of lengths <=> a = Acos(dotproduct / product of lengths) so this would only work for vectors that have a...
  12. Trollvottel

    comments and suggestions are greatly accpepted!!!

    You wont be able to do it without triggers and noone will help you with your map (= trigger it for you) if you dont give it a unique aspect.
  13. Trollvottel

    Iconpack WoW Icon Pack [~1660 Icons]

    The goos.se-mirror is still working. However i will soon upload some new mirrors. /edit: Mediafire works again
  14. Trollvottel

    Acehart!

    i guess you are hyping him too much. i mean hey, he cool and did very much for this forum, but your fanboy attitude is kind of ridiculous.
  15. Trollvottel

    Efficient way to find which unit has the most units near it?

    Just to note it: It is not even O(n²), which is also bad, but not as bad.... I mean You have to check every Unit for near units. So you check n times for some units, i think in the worst case it would be O(n * n/4) but always, if there are always 1/4*n units near each unit. Or did i miss...
  16. Trollvottel

    Most efficient S2I and I2S?

    http://www.thehelper.net/forums/showthread.php/135066-Ascii
  17. Trollvottel

    Userbars

    What are userbars used for?
  18. Trollvottel

    Reputation - A Seth Cross Debate

    Haha, i often get -rep'd for -repping someone. People are always offended when you -rep them, they just don't have the ability of self-reflection and thus dont get my reasons for -repping them. About 50% of the people i -rep'd just -rep'd me back at some random post :P. At this point it is great...
  19. Trollvottel

    3d projectiles?

    jop, thats right. and for that you need my calculations. your calculations would pick units in a cylinder (i drew the square in which you picked the units).
  20. Trollvottel

    3d projectiles?

    K, image example following. hope you understand it. lol, drnk on teh internetz /edit: the center of the point is your object. the square on is the one with which you check collision. /€²: There is a mistake in the image. in the left circle the square should be closer to the center so that it...
Top