Hi, I've got the jumppad script from the 3rd person tutorial (from the unity3d site) but i need to edit it to work with my current scene. This is wat ive got now: - a simple plane - First Person Controller - JumpPad Trigger (with sphere collider)
This is the script:
var jumpHeight = 5.0;
function OnTriggerEnter (col : Collider)
{
var controller : FirstPersonController = col.GetComponent(FirstPersonController);
if (controller != null)
{
if (audio)
{
audio.Play();
}
controller.SuperJump(jumpHeight);
}
}
// Auto setup the script and associated trigger.
function Reset ()
{
if (collider == null)
gameObject.AddComponent(BoxCollider);
collider.isTrigger = true;
}
@script RequireComponent(BoxCollider)
@script AddComponentMenu("First Person Props/Jump pad")
I simply changed every Third Person to First Person, but im getting the error: BCE0018: The name 'FirstPersonController' does not denote a valid type ('not found').
Ive tried several things but i just cant figure it out, it must be some simple solution but I dont know the program that good. Any help is appreciated! Thanks!