Ignore:
Timestamp:
2011-06-30 10:58:38 (9 years ago)
Author:
teeevasa
Message:

weapon fire only destroys aliens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2342 r2343  
    4747    { 
    4848        PhysicsObject bullet = this.Weapon.Shoot(); 
    49         //bullet.Hit(new Vector(1000, 0)); 
    5049 
    5150        // As of now weapons are set to have infinite ammo, but that might change 
     
    5756 
    5857    void bulletReachedTarget(PhysicsObject bullet, PhysicsObject target) 
    59     {  
    60      
     58    { 
     59        bullet.Destroy(); 
     60 
     61        if (target.Tag == "MeleeAlien") 
     62        { 
     63            target.Destroy(); 
     64        } 
    6165    } 
    6266 
Note: See TracChangeset for help on using the changeset viewer.