(I hope I can state my question clearly)
probleam: my current upgrade gadget only allows a unit to have ONE upgrade button... what I want is for one unit to be able to transform into more then just one thing... meaning several upgrade buttons on there menue
question one: would it be easy to acheive this by altering my current gadget to allow for multiple buttons added to a single units menue? ...OR... writeing a second gadget that was VERY simular to the first but took care of the other upgrade options?
question two: providing its easyer to write a second gadget that is simular to the first: Do synced variables HAVE to be diffrent between the two?
question three: providing its easyer to write a second gadget that is simular to the first: How would I check to see if the command variable numbers that I would designate are empty/availible?
example: local CMD_MORPH_STOP = 32210 --original
local CMD_MORPH_STOP = 32310 --random change I picked
but how do I know/check if 32310 is availible as a slot for that command? (providing I am not confused on what thoughs number designations actually mean)
final words: thanks for reading all that. sorry it was so long. I was trying to shortin as much as possible and keep clairity... let me know if its unclear so I can revise
thanks :)
Gadgets question
Moderator: Moderators
Re: Gadgets question
For an example of an "upgrade" that allows a Unit to "become" many different types of Unit, see TransformMultiTruck.lua in the P.U.R.E. sourcecode release. It is an instant upgrade, but you could hook it into COB or put it into a delayed function and delay it very easily, if that's necessary.probleam: my current upgrade gadget only allows a unit to have ONE upgrade button... what I want is for one unit to be able to transform into more then just one thing... meaning several upgrade buttons on there menue
-
- Posts: 47
- Joined: 20 Dec 2009, 21:16
Re: Gadgets question
hay thanks for the info I will check into that :)