| 02-02-2004, 11:28 AM | #1 |
Well in the JASS vault I found a function named UnitLeap. Before getting it to even compile correctly I had to add another function by Dataangel (I think) called something like TimedSpecialEffect but thats not the problem. The problem is the UnitLeap function take 3 values namely: unit whichUnit, integer fakeType, location targetLocation I'm having problems with the second one. It appears to be an integer but its supposed to take a unit-type. In the object editor I looked for the raw values but they contain strings, so how do I put that? |
| 02-02-2004, 12:06 PM | #2 |
ah, Unit Types (amongst other things like abilityID's and more) are in fact "integer" values. Blizzard just created a special integer-type called "unit-type" for the GUI to be more user-friendly. But basicly, you just pass the unit-type "ID" to the function in this manner: 'xxxx' ... that is, using single-quote, and put the 4 letter string inside it. The reason this is possible, is, that the integer is a 32-bit number. And you can thus pack four 8-bit ASC-II symbols in it. So... if the unit-type is: A000, you'd just call this function with: 'A000' where it expects the integer type. Hope this helps Cubasis |
| 02-02-2004, 05:37 PM | #3 |
This helps A LOT. Thanks Cubasis. But now a second problem: for the third take value of the function: a location. Since version 1.13 there is something called: Target point of ability being cast. In JASS it must resemble something like this: GetLocation( SpellLocation ) but i cant seem to find it in Blizzard.j (first time i opened that wicked file). ( I can solve this problem by assigning a variable to the point in GUI but its just to make things shorter and making less variables.) |
| 02-02-2004, 06:40 PM | #4 |
It's called GetSpellTargetLoc(). Btw, why not just make it in GUI, then convert it to see how it's done? |
| 02-04-2004, 01:21 PM | #5 |
Well... thats why I stated that I'm nooby, I really didnt think of that and its still so simple...and thanks |
