HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[need] Destructable to Integer

09-01-2008, 10:17 PM#1
<?White-Tiger?>
Helo every body ;)

I need help.. I'm searching for a Destru to Int function.. like H2I for Units etc... but H2I doesn't work for Destructables...
I need it because i have made a system for opening / closing Gates... i need it for my map

I can fix my Problem by using X/Y Axis of a Destru to identify it, but if (why ever she should do that) a Destru is Moving its won't work... or if some Destru's at the same X/Y Point.

I hope some one can help me or say me that is no way given to identify it whit a function like H2I

(and sry about my worse English^^)
09-02-2008, 01:25 AM#2
<?White-Tiger?>
WTF.. what does Blizzard for a shit^^

If i execute H2I(gg_dest_YTcx_0001) from GUI it returns 0 (via Custom Script Action)
If i execute the self function whit same parameter from Jass it works.. and returns the correct Destru ID... (i have converded the Trigger in Custom Script.. so all is the same)
what the fuck is going on?

Please can some one Test what i report here and Post a reply?
I think it is not only a bug of my Warcraft / JassNewGen

btw. "call BJDebugMsg("Y "+R2S(GetDestructableY(gg_dest_YTcx_0001)))" in GUI this Custom Script Action will return 0 too.. in a Jass Trigger it returns the correct Y value