pbarnes
08-13-2008, 07:27 PM
i want a emitter to emit a single particle which is instanced when the rotation og a piece of geometry is a multiple of 90
so in one rotation 4 emissions occur.
how do i do this
i have tried entering an expression by right clicking on rate and entering
bulletEmitter.rate = (frontGunGroup.rotateZ % 90) ? 0 : 25;
//code to make emit on 90 degree intervals
but it still emits when rotate value of 0, how can i exclude this value
0/90 = 0
i also tried adding another condition so it was
bulletEmitter.rate = (frontGunGroup.rotateZ % 90) && (frontGunGroup.Amount >= 1) ? 0 : 25;
but it didnt work
cheers
so in one rotation 4 emissions occur.
how do i do this
i have tried entering an expression by right clicking on rate and entering
bulletEmitter.rate = (frontGunGroup.rotateZ % 90) ? 0 : 25;
//code to make emit on 90 degree intervals
but it still emits when rotate value of 0, how can i exclude this value
0/90 = 0
i also tried adding another condition so it was
bulletEmitter.rate = (frontGunGroup.rotateZ % 90) && (frontGunGroup.Amount >= 1) ? 0 : 25;
but it didnt work
cheers
