| Blockland Forums > Suggestions & Requests |
| [Request] Infinite items |
| << < (5/7) > >> |
| Demian:
Then would you mind explaining what I need to do then? |
| lordician:
--- Quote from: Demian on March 01, 2010, 09:11:44 AM ---Then would you mind explaining what I need to do then? --- End quote --- Only put in the function. Delete the package thing above and underneath it. --- Code: ---function hegrenadeImage::onFire(%this, %obj, %slot) { %obj.playthread(2, spearThrow); WeaponImage::OnFire(%this, %obj, %slot); } --- End code --- |
| Space Guy:
If you renamed it without editing server.cs then it shouldn't be executing at all. Try removing the zip file if you still have it (leaving the files in a folder named Weapon_HEGrenade) and renaming the file back to Weapon_HEGrenade.cs, I think it's detecting the one in the zip file unmodified instead of your version. |
| Demian:
This is my current code. --- Code: ---function hegrenadeProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal) { serverPlay3D(hegrenadeBounceSound,%obj.getTransform()); } function hegrenadeImage::onFire(%this, %obj, %slot) { %obj.playthread(2, spearThrow); WeaponImage::OnFire(%this, %obj, %slot); } function hegrenadeImage::onDone(%this,%obj,%slot) { %obj.unMountImage(%slot); } datablock DecalData(HEGrenadeIcon) { textureName = "Add-Ons/Weapon_HEGrenade/icon_hegrenade"; }; --- End code --- But still: --- Quote from: Demian on February 27, 2010, 07:25:16 AM ---I charge the grenade, throw it, after 1 second the grenade disappears from my hand, but not from the inventory. As such, I cannot throw the grenade again. I move one inventory slot down for another grenade, still no grenade in my hand. I move down one more and then I have a functional grenade in my hand. --- End quote --- |
| Demian:
BUMP. |
| Navigation |
| Message Index |
| Next page |
| Previous page |