The Cobbler
05-27-2006, 02:18 PM
Hey all...just a fast question
I am trying to stop an instance from rotating when it hits the collision object.....current script is as follows:
if (particleShape1.event >= 1)
particleShape1.finalroto=<<0,rand(360),0>>;
Problem is I am having a brain freeze here with trying to remember what the proper tag is for grabbing just a whole number for the Y vector...the rand function just continues to rotate the objects on Y when they hit the ground....I just want to assign a random number like 4 and have it sit there...(there are lots of objects so they need a good range of random rotation)
Thanks in advance......I cant believe I'm askin this.
I am trying to stop an instance from rotating when it hits the collision object.....current script is as follows:
if (particleShape1.event >= 1)
particleShape1.finalroto=<<0,rand(360),0>>;
Problem is I am having a brain freeze here with trying to remember what the proper tag is for grabbing just a whole number for the Y vector...the rand function just continues to rotate the objects on Y when they hit the ground....I just want to assign a random number like 4 and have it sit there...(there are lots of objects so they need a good range of random rotation)
Thanks in advance......I cant believe I'm askin this.
