HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Issues with Delegates

03-21-2010, 06:46 PM#1
Wizardum
Ok, so I've been exploring the xe engine code, and I've been gladly capable of learning a few things.
And one thing I've learned was how to use delegates. or I thought.

Well I'm delegating a struct inside another one, pretty much like xefx is delegated inside xecollider. But when I test my system, the missiles don't move, the effects aren't created, it seems that the dummies aren't being created but they are actually. However if I put debug messages on every method that is called, all messages will appear in-game but no change at all.

I'll post here the code, I'm afraid it's in Zinc, but any vJasser can read it, if I can read both vJass and Zinc, who can't?

Expand Main:

Expand Projectile:

Expand Motion:

Expand TestCode:

you can notice that creating a new projectile in my system (attempt) is pretty much the same way as creating one in xe.

Damn it! the code appears all red here lol, no way to fix it though.
03-22-2010, 12:43 AM#2
Deaod
Quote:
Damn it! the code appears all red here lol, no way to fix it though.
You could use the [zinc][/zinc] tags.

Anyway, try changing the line m.msl.create( x, y ); into m.msl=dmProjectile.create(x, y);
03-22-2010, 11:18 AM#3
Wizardum
god I can't believe I lost 2 days because of such a tiny problem.
Thanks a lot, where was my head anyway?