- Home /
looking for help with item pickups
I am a noob,so I don't know how to create an object that is pickuppable(?) I want my player to be able to pick up an object (key/key card) and use it to open a door or series of doors, any suggestions or assistance would be appreciated. Smart asses need not reply.
Answer by Wentzel · Oct 30, 2011 at 06:22 PM
IF you meen like Just a simple collision pick up.
function OnCollisionEnter(TheCollision : Collision){ if(TheCollision.gameObject.name == "Pickup"){ Destroy(gameObject.find("Pickup")); }
Or do you want to like press a keyboard key to open up a door if you have a pick up ?
Your answer
Follow this Question
Related Questions
3D game: Pickups don't disappear when player touches them. 4 Answers
Door opener 1 Answer
Script for collectiong keys to escape 2 Answers
Set attatched colliders to 0 on interactive cloth via script? 1 Answer
Key script not working right! 1 Answer