| Blockland Forums > Suggestions & Requests |
| Weapon Disappear in pickup |
| << < (7/7) |
| Amade:
--- Quote from: reblee on February 19, 2010, 08:12:33 PM ---And where might I put this code to enable it works? --- End quote --- He was trying to give you an event like everyone else is This should actually work: --- Code: ---package Item_DisappearOnPickup { function Player::pickup(%this,%item) { %brick = %item.spawnBrick; %val = Parent::pickup(%this,%item); if(%val == 1 && isObject(%brick) && %this.getClassName() $= "Player" && isObject(%this.client)) { %brick.setItem(0); } return %val; } }; activatePackage(Item_DisappearOnPickup); --- End code --- |
| Navigation |
| Message Index |
| Previous page |