- Home /
Question by
CallToAdventure · Oct 21, 2010 at 08:37 PM ·
pickuphealth
Very Simple Pickup Issue
Hi everyone,
I'm not a coder so don't be harsh on me :)
I am trying to use a pickup script on a model that has no FPSPlayer/Character controller attached; It's a ship. Please explain to me what these two lines should tell me : )
- function ApplyPickup (player : Airship) { //initially this was FPSPlayer
- var player : Airship = col.GetComponent(Airship); // who's the player and who's supposed to be the component?
My 'player' setup is like this - A Parent game object named Airship that has the ship controls and the health script from the fps tutorial. It works fine. To this object I attached the mesh of my ship.
Thanks in advance :)
Comment