C
Chris12245
Guest
I currently have it set like this, but of course doing this destroys every instance of that object in the room. I was wondering if any one has any tips of how to do this.
with(oPlayerPistol)
{
if(distance_to_object(oAmmoBox) < 10) and (key_interact)
{
ammo = ammo + 5;
instance_destroy(oAmmoBox)
}
}
with(oPlayerPistol)
{
if(distance_to_object(oAmmoBox) < 10) and (key_interact)
{
ammo = ammo + 5;
instance_destroy(oAmmoBox)
}
}