I'm trying to figure out what exactly CyUnit.convert() does. I guess it clones some attributes from one CyUnit instance to another, but which ones and how does it work? And what's the point of it all? (I would probably use it to "flip" units so that they appear to change owners. So create new units for the new owner, clone the units of the old owner, and finally kill off those units.)
I've tried searching the forums but the discussions on this topic only serve to confuse me further. So what about just a simple to-the-point explanation on the use of this particular method?
Oh, and also: What does CyUnit.setXY() do? (What are all those parameters supposed to do?) Can I use it to "teleport" a unit from one tile to another, or is it just some stuff to do with 3D models and the like?
I've tried searching the forums but the discussions on this topic only serve to confuse me further. So what about just a simple to-the-point explanation on the use of this particular method?
Oh, and also: What does CyUnit.setXY() do? (What are all those parameters supposed to do?) Can I use it to "teleport" a unit from one tile to another, or is it just some stuff to do with 3D models and the like?