Lazor cutter/vaporizor w/ custom variables
Posted: Sat Sep 05, 2009 6:42 pm
I'm making a pulse rifle, it's got 2 functions- 1 is cut, other is vaporize.
i have a custom boolean variable IN the lazor called vaporize.
in my onLaserHit, I have this:
Why is this not working?
It won't ever vaporize an object, just cut it :\
even when i have vaporize set to true.
i have a custom boolean variable IN the lazor called vaporize.
in my onLaserHit, I have this:
- Code: Select all
(e)=>{vaporize == true && cutter == true ? {e.geom.density = NaN}}
Why is this not working?
It won't ever vaporize an object, just cut it :\
even when i have vaporize set to true.