|
Ok now i have a question on how to plant a bomb. I got my bomb picking up script, but now i need help with planting a bomb at a objective. Ok here is my script for picking up the bomb. private var Player : Bomb;
Now i when my player comes up to the objective i want something to display, like to press a button. So for when i press the e button it will plant a bomb. In the spot. And someone can come to defuse it. I know this is 2 questions but you can only answer 1 if you want to. Thank you.
(comments are locked)
|
|
For the display, use GUI. You can add a trigger around the objective, and if player is in it, show it, if not, then don't. Then for planting, if player pushes a button, then put bomb on thing. For defuse, same thing, just bomb off thing. Input: http://unity3d.com/support/documentation/ScriptReference/Input.html GUI: http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html And looks like you have the trigger =). I would have told you the same thing Justin Warner is right :)
May 09 '11 at 03:19 AM
MC HALO
I am already familiar with the input, i want to plant the bomb in its place.
May 16 '11 at 03:25 AM
Kashaunzilla
So that'd be instantiating. http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html
May 17 '11 at 01:03 AM
Justin Warner
(comments are locked)
|
