The source isn't mine... I've made a few fixes for multis and z<0.
works for items placed on other items...
example: bottle on table
If you pick the table the bottle will fall down on the ground
Gravity (Packethook 0x7, 0x8)
Gravity (Packethook 0x7, 0x8)
- Attachments
-
gravity.zip- Gravity system for items
- (3.03 KiB) Downloaded 499 times
hehehe... yes, but if someone have pillow under the table? 
or if you have nitro in the bottle??
???:D
or if you have nitro in the bottle??
Code: Select all
foreach item in listitemsnearlocation(bottle.x,bottle.y,bottle.z,20)
destroyitem(item);
//here make some explosion anims :)
endforeach
if (item.multi)
destroymulti(bottle.multi);
endif
destroyitem(bottle);