so i tried to enable the spawnpoint if collidiong with a cube that i tagged as “Bomb”, i attached the script to the spawnpoint and it doesnt seem to have any errors, so when i play the game the spawnpoint dissapears but whenever i collide with the “Bomb” object nothing happens :/…help PLEASE!!! THAKS!
here is the script!
gameObject.active = false;
function Update () {
}
function OnCollisionEnter(collision : Collision)
{
if(collision.gameObject.tag == “Bomb”)
{
gameObject.active = true;
}
}
If the object isn’t active then Update() will never run. You need a separate GameObject/script with the collider to trigger the spawn-point to be active.
ooohhh k ill try that XD thanks!
but how is it gonna work if the game object cant collide with the cube because is not active?!! uuugghh its so frustrating!!! T.T
why don’t you want to the game object to be active?
Are you just trying to hide it, in which case you can turn the renderer off and switch it on at collision.
no…i want to shoot different projectiles by getting an item 