Juzwa Posted July 1, 2016 Share Posted July 1, 2016 Hi, I want to kill my particles randomly between 140 and 150 frames. So I have this expression: if (@frame > (rand(@ptnum) * 10 + 140)) { dead = 1; } I hoped it would work. However it doesnt do anything Quote Link to comment Share on other sites More sharing options...
mawi Posted July 1, 2016 Share Posted July 1, 2016 @Frame with capital F. Also, use id instead of ptnum. if (@Frame > (rand(@id) * 10 + 140)) { dead = 1; } 1 Quote Link to comment Share on other sites More sharing options...
Juzwa Posted July 1, 2016 Author Share Posted July 1, 2016 (edited) Oh thx. I come from maxscript and sometimes I forget that other scripting languages are case sensitive Edited July 1, 2016 by Juzwa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.