Page 1 of 1

Help with circles

PostPosted: Thu Dec 27, 2018 4:11 pm
by STRVSTRV-7
So.
You see the giant cat on the right, and it has red circle spawner. Inside the red circle spawner,
It has invisible circle with HUGE Script that spawns red circles.

The problem is I want the red circles to explode when collides with any stuff.
Except the objects that has materialName = "immune"
And I want the circles didn't explode when colliding with plane.

Big thanks whoever types it script for me.

Re: Help with circles

PostPosted: Fri Dec 28, 2018 11:15 am
by FRA32
Code: Select all
onCollide:
(e)=>{
e.other.materialname != "immune" && e.other+"" != "plane" ? {
timetolive = 0;
}: {}
}