I’m starting to make a script for a grappling hook, but when I try to instantiate the soon to be grapple, nothing happens.
var grapple: Transform;
function Start () {
}
function Update () {
Grappling ();
}
function Grappling () {
if (Input.GetKeyDown == ("KeyCode.F"))
{
var newGrapple = Instantiate(grapple, transform.position, Quaternion.identity);
}
}