[SOLVED] Particle Effect error?

Does anybody know how I could fix this error?
I have never seen an error like this so idk what to do…
So for my game, there is this perk that you can pick up and it gives you explosive rounds. Well, when you shoot your weapon it’ll fire a rocket that explodes on impact with enemies.
The explosion is a particle effect that plays on collision with anything…
(the particle is set on a loop that’s why I am enabling it)

var Bullet = pc.createScript('Bullet');
Bullet.attributes.add("ds", {
    type: "boolean"
});
Bullet.prototype.initialize = function() {

    this.entity.collision.on('collisionstart', this.onCollisionStart, this); 
};
Bullet.prototype.onCollisionStart = function (result) {
    //this.entity.sound.play("hit");
    
if(this.ds == true && result.other.name == 'Enemy_1'|result.other.name == 'Enemy_2'|result.other.name == 'Enemy_3')
{this.exrange.enabled = true;}else 
 
   if(this.ds == false){
   this.entity.destroy();}

};

Hi @Connor_Briggs,

Check here for a fix: Lots of shader error messages after new update - #2 by yaustar

1 Like

Its working now…
Thank you

1 Like