Blockland Forums > Suggestions & Requests

Loot system Help

Pages: (1/3) > >>

Damien4545:

I am using an onItemPickup event for a loot system that I am making, where every morning new loot spawns on a brick, and I need it so when you pick up  the item, it disappears. The problem is, the onItemPickup event doesn't work with an ammo system, EX I am using Gcat's default weaponry. It has an ammo pickup system. I thought maybe deleting a certain part in the ammo script would fix it. It half fixed it. The event worked, but you fire one shot and the gun runs out of ammo and you need to reload. If someone could either fix the item pickup event, or edit Gcat's to work without the ammo box, it will be appreciated.



Damien4545:

.

TristanLuigi:


--- Quote from: Damien4545 on January 06, 2014, 09:07:51 PM ---.

--- End quote ---
Best reply 2014

Use onActivate > Player > spawnItem | onActivate > Self > setRaycasting [false]

Damien4545:


--- Quote from: TristanLuigi on January 06, 2014, 09:13:38 PM ---Best reply 2014

Use onActivate > Player > spawnItem | onActivate > Self > setRaycasting [false]

--- End quote ---
The loot spawns every morning, it's not a loot box. The items actually appear on a set block, but the onItemPickup event doesn't work.

TristanLuigi:


--- Quote from: Damien4545 on January 06, 2014, 09:20:31 PM ---The loot spawns every morning, it's not a loot box. The items actually appear on a set block, but the onItemPickup event doesn't work.

--- End quote ---
I wrote that with the idea that you'd have to change it.
You could just use onPlayerTouch - also is this for Hunger Games?

Pages: (1/3) > >>

Go to full version