| 07-11-2006, 05:23 AM | #1 |
Ok well I've been stuck on something kinda stupid. I want to make a local destructable-type. It just doesn't work :( Lol. What is the var for destructible-type in JASS? :P I tried destructable-type (got an error) and destructabletype (got an error) local destructable(WHAT I INSERT HERE) d=Getblablabla I just can't seem to find it anywhere ![]() |
| 07-11-2006, 05:31 AM | #2 |
There is none. This is no big deal as none of the *types are remotely useful. GetDestructableTypeId() will match up with the 4 char code. You are, btw, welcome to create the type; just add it to common.j. You'll only be able to use it via return bug. I guess if you really want the type safety... |
| 07-11-2006, 05:39 AM | #3 |
Well ok thanks :D But I won't create it heh. Since my trigger didn't work I thought that the DestructableTypeId would be lost after a 300 seconds wait, but since I first set the dying destructable into a variable, it shouldn't be "lost". I'll try something else |
| 07-11-2006, 06:23 AM | #4 |
Just Store the TypeID as an int, as PipeDream said. |
| 07-11-2006, 03:03 PM | #5 |
I really think we should make a new varaile, as a "projectile", and maybe a few more (obvoiusly using the return bug to edit/add/remove them). But i think it would save ALOT of time in the long run, there should be more variables than the ones Blizz limit us too. |
