Ok so i have a basic script whitch spawns an item when i click my mouse, however i would like it so the object spawns where i click, instead of from the object i attach it to.
This is the script:
var bomb : GameObject;
//0 is for when the left button is clicked, 1 is for the right
In case you are wondering i am making a ragdoll type game and would like it so that where i click a grenade appears and explodes (i have already got the exploding and stuff sorted so i dont need any help on that).