hello.
i am trying to get my weapon to add an item, and remove it after a certain amount of time has passed.
http://paste.neurohack.com/view/YhHbw/
This adds it just fine, it just doesnt remove it like i want it to.
removing item
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I think the problem is because you are creating new item when you remove it:
Try using a setq when you create it so that the game has a reference to which item you want removed. (Every item has a unique number for it)
Code: Select all
(objRemoveItem gSource (itmCreate 0XD0040018 1))
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I mean when you create the item, use (setq WhateverYouCallTheItem (itmCreate UNID####))
Then, (itmRemove WhateverYouCallTheItem)
That might work. I haven't tested it, so I don't know.
Then, (itmRemove WhateverYouCallTheItem)
That might work. I haven't tested it, so I don't know.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
i was going to say you can add an expiration : crystals expire. you can usually find the codes you need or adapt the ones in the game pretty easy..
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..