Author Topic: Your first three proper add-ons  (Read 2899 times)

(Realesed or not)

Mine were a smoke grenade, a fire grenade that I am trying to code right :/, and a bomb , (does any one know yhe right way to make a thrown item leave your inventory.

Look for
Code: [Select]
stateName[0] in the script then place



       stateName[#]               = "Done";
       stateScript[#]               = "onDone";
};
            function BombImage::onDone(%this,%obj,%slot)
  {
      %obj.unMountImage(%slot);
}

But change the # into the numbers needed (if there is a 0 and a 1 of the stateName the # would end up being a 2.
That should work if it doesn't don't blame me.

That will only make you stop holding the item, but it will still be in your inventory.

So there would need to be a tiny bit extra on that code to get rid of it fully.

What else is needed? I'm making something else.

i did make some kind of new sword a long time ago ;3

Ion Cannon, Ion Cannon admin only, Death Ion Cannon.

I suck at making add-ons, I'll need to make it up to you guys :(

Look for
Code: [Select]
stateName[0] in the script then place



       stateName[#]               = "Done";
       stateScript[#]               = "onDone";
};
            function BombImage::onDone(%this,%obj,%slot)
  {
      %obj.unMountImage(%slot);
}

But change the # into the numbers needed (if there is a 0 and a 1 of the stateName the # would end up being a 2.
That should work if it doesn't don't blame me.

Also this pretty much just clarified a grand mystery for me, which was the stateScript[somenumber] part, so THAT's what it does.
« Last Edit: April 04, 2008, 03:38:24 PM by Muffinmix »


AFK Script, TIE Fighters, and the X-wing. I know they suck. :(

smoke grenade(i cant get the particle any bigger i messed up part)
some wierd ice cream cone weapon grenade thing(esploding ise cweem)
and a nothing

I haven't made any weapons or anything, but I've made a /teleport.  :cookieMonster:

I know I said I would stay off the fourms but I just can't, plus I need to figure this out before I can host, please can some one help me find the sulotuion.

I made a simple map, a playertype, and a couple of weapons, all using borrowed shapes/script segments/interiors/textures. :cookieMonster:

[img ]http://icanhasupload.com/04092008/qualitycoding_3.jpg[ /img]

User was banned for this post
« Last Edit: April 09, 2008, 08:41:59 PM by Badspot »

[img ]http://icanhasupload.com/04092008/qualitycoding_3.jpg[ /img]

User was banned for this post

I don't get it, but nonetheless Hahaha