StarfishRap Posted June 12, 2012 Share Posted June 12, 2012 Hi guys, I'm trying to get my point instancing to do like every 6 points instance obj1, and obj2 and so on. The goal is say user could define point 0-6 to be using "/obj/geo1/" and 7-12 using "/obj/geo2/". Hope you get what I mean. Thanks! Quote Link to comment Share on other sites More sharing options...
sadhu Posted June 12, 2012 Share Posted June 12, 2012 set the value of instance = /obj/geo`trunc($PT/7)` Is this is what you want? Quote Link to comment Share on other sites More sharing options...
Netvudu Posted June 12, 2012 Share Posted June 12, 2012 (edited) yup. /obj/geo`int($PT/7)` should also work. Edited June 12, 2012 by Netvudu Quote Link to comment Share on other sites More sharing options...
StarfishRap Posted June 12, 2012 Author Share Posted June 12, 2012 (edited) Thanks for the replies guys! What Netvudu mentioned is what I'm looking for. But the trunc method is also pretty useful for other purposes Thank you so much! I've been over thinking, tried group range, for each etc... Edited June 12, 2012 by StarfishRap 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.