particle Emission
hey
i want to emit a particle every time an object rotates 90 in the Z axis.
float $Value = "getAttr frontGunGroup.rz";//gets the .rz
//value and assigns it to a variable
if(($Value % 90) == 0)
setAttr bulletEmitter.rate = 25;
//% is modular(?sp) so i am asking it if $Value divides by
//90 and has a remainder of zero it sets value of 25
i dont know if im barking up the wrong tree as i cant get it to work.
i think i need an else command in there as well