Ok here’s the deal
I have an object that when it collides with another it needs to make the player object jump in the air.
So when I attach a script to the object for the collision event I’m having issues on how to have the player jump.
I have given the player object a tag of player and can get the GameObject reference that way, but it seems that if I do anything to either the rigidbody or the transform it’s not working correctly.
any ideas would be greatly appreciated.
Ok here’s what I did.
I’m using the ThirdPersonController from the 3rdPersonTutorial.
Function OnCollisionEnter(collision : Collision)
{
var go : GameObject;
go = GameObject.FindWithTag("Player");
//player jump
go.GetComponent(ThirdPersonController).SuperJump(50.0);
//Destroy Object
Destroy(gameObject,1);
}