i want a certain sound-signal being heard everytime the player-character gets an inventory item. can i do that without scripting it for every single item?
A little function will be useful in this case, something like :
function AddInventorySound(int what){
AddInventory(what);
PlaySound(1);
}
thanks for help! yes, something like such a little function will do it. i tried it but it didnt work.
it says "nested function not supported". what now?
well, you have a braces problem... one is not closed properly.
But, I'm not sure you would even need this extra function... but perhaps you do.
I would just put the "playsound'' at the same point that i would be adding inventory, or you could have the invetory things hooked up to a point system, and there is a play sound at different point levels or when you just get points... i think that would work.