- Home /
Question by
chiggafoo · Jun 24, 2011 at 02:02 AM ·
animationgameobjectinstantiate
Created A Gameobject when Pressing a button near player?
I want to create a sword animation when the person click the left mouse button which it fire1, but the problem is the character is moving around and so the location cannot be a specific place but where the player is at... "How Do i make it if the person presses the "Fire1" Button a sword will appear near the player doing an animation of a slash"
This is what i got :(
var weapon : GameObject;
function OnMouseClick ("Fire1"); {
player = new GameObject("weapon");
player.AddComponents("BoxCollider"); }
Comment