Good evening all,
So far my game is coming along and i have so far used to tags to locate multiple enemies and destroy them all before it loads to the new level.
The enemies shoot back at me and they are now firing bullets but they just bounce of me instead of me disappearing yet the Player has been tagged.
Around my players there is a box collider which has been added and it has been ticked that is the only thing that is different from my Player:
This what is attached to the fireball shooting at the enemy works fine:
var lifetime = 1.0; // how long bullet lives in the game
[CODE]var explosion : Transform; // fireball: create the explosion in the inspector Enemy
var collide;
function OnTriggerEnter(collide : Collider)
{
// Check for enemies via a tag
if(collide.gameObject.tag == "Enemy1")
This is what is attached to my laser that fires against me the Player, not working
var lifeBullet = 1.0; // life of bullet in scene
var laser : Transform; // laser object in the inspector
var hit;
function OnTriggerEnter(hit : Collider)
{
// Check for Player via a tag
if(hit.gameObject.tag == "Player")
{
[/CODE]
The only difference i can see that its a Character Controller, would i be wrong in writing this or am i way off the mark
function OnTriggerEnter(hit : CharacterController)
Cheers Guys