Ray wrote:Yes that kind of defeats the purpose of what I am asking.
Well, I have been thinking, instead of having party-map shops run by people, and having abuse of it when no admin is present. That weapon vending machines be placed instead. The coding for that is already done, but when I tested it, the weapons didn't go away.
That way also has more security.
Was that hard to you to tell this in the first post ? It's simple to do.

But it has numerous solutions.
There is one, that looks like:
ItemFromMachine.LifeSpan = 10;
- add in properties of spawned item.
For example, i'll take a part of the code from VendingMachine class (DeusEx.u)
if (product != None)
{
if (product.IsA('Sodacan'))
PlaySound(sound'VendingCan', SLOT_None);
else
PlaySound(sound'VendingSmokes', SLOT_None);
product.Velocity = Vector(Rotation) * 100;
product.bFixedRotationDir = True;
product.RotationRate.Pitch = (32768 - Rand(65536)) * 4.0;
product.RotationRate.Yaw = (32768 - Rand(65536)) * 4.0;
<b>product.LifeSpan = 10;</b> // now, it will disappear in some time
}
Marco goddamnit, if you learned a word 'engine' theres no need to say it in every posting!!
