- Home /
Question by
BraydenYates · Oct 05, 2013 at 05:53 PM ·
spawnonkeydown
Using GetKeyDown to spawn in gameobject
Hey, I'm wanting to write a script so that when people press 'f', it spawns in a gameobject called "house" where the player is looking. I am using photon, if that helps. Thanks!
function Update () {
if (Input.GetKeyDown ("f"))
//Need a script to spawn in a house where someone is looking
}
Comment
Your answer
Follow this Question
Related Questions
How do i make objects spawn from a custom location? 2 Answers
make 2 object not collide? 2 Answers
Create a cube relative to camera & mouse position. 1 Answer
zombie network spawn! help" 0 Answers
grid checking for objects 1 Answer