Posted: Thu Jan 07, 2010 6:19 pm Post subject:
Deploy artillery by the press of a button
Right, so I'm trying to get this bloody artillery tank to deploy when you press a button, much like the outposts and what not in cnc3, but they're also supposed to be undeployable.
However, I can't seem to get my head around it all, I've been trying to combine a few code bits from other units like the GDI surveyor and some other, and well I've come to the conclusion that I'll need two XML files in order for this to work (deployed version and mobile version obviously).
I'm just not quite sure what I'm doing wrong/right because I have never coded animations in cnc3 before, the thing is that, the button simply won't appear (there's probably a bunch of other problems aswell)..
If you spot anything (most likely) please let me know what I'm doing wrong, so I may learn and fix the problem.
Appreciate the help!
Mobile Version
Code:
x
Deployed Version
Code:
x
_________________ Only War and Only War 2 Mod Leader and Team, all in one! Last edited by Boomerang Python on Sat Jan 09, 2010 2:56 pm; edited 1 time in total QUICK_EDIT
I don't know, but wouldn't the MCV be a better unit to base your code around, rather than the surveyor? The MCV deploys and undeploys, so the code is definitely there in some form... QUICK_EDIT
Just a tipp, don't want to leak our code, TSR uses the Shadow Team's locomotor toggle to switch between mobile and deployed states. _________________ Off Duty. QUICK_EDIT
Um, I don't think players can put structures on top of units ever...? Maybe your unit or structure is lacking a proper OBBox and geometry code?
Anyways.. I've now tried coding my artillery tank both ways, and um, the shadow team code kinda broke the mod for me
when it's loaded up a skirmish game the game dies, top notch! Got no idea what the sod I might have done wrong, so I'm bloody frustrated right about now and just might give up on the idea of having deployable artillery.. If it wasn't for all those hours wasted on animating the damn thing..
And the MCV code I never got to work either, the button was just greyed out all the damn time no matter what I did, I even tried to just make the button a simple Upgrade instead of a special power, but that just killed the mod when you clicked on the unit..
BIT frustrating.. Any ideas? _________________ Only War and Only War 2 Mod Leader and Team, all in one! QUICK_EDIT
Nevermind, I figured it out myself, I ended up using the shadow team glider code after all. _________________ Only War and Only War 2 Mod Leader and Team, all in one! QUICK_EDIT
What would be the best way to make the tank unable to attack while using the normal locomotor and be able to attack after deploying into the "Upgraded" locomotor?
Suggestions? _________________ Only War and Only War 2 Mod Leader and Team, all in one! QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum