czarquon Posted June 21, 2010 Share Posted June 21, 2010 (edited) Greetings, I am trying to create a DOPs group to apply forces too. To do this I have an object /obj/wave_displace/OUT which is a colored grid. I am querying the current DOP object with DOPOPTION to find it's centroid position and then using that position with nearpoint to find the closest point on my colored grid. The expression is: point("/obj/wave_displace/OUT",(nearpoint("/obj/wave_displace/OUT",dopoption("obj/DOP_tiles/dopnet1",$OBJID,"Position","px"),0,dopoption("obj/DOP_tiles/dopnet1",$OBJID,"Position","pz"))),"Cd",0) > .2 However, using this causes all of my objects to become members of the group at the same time---when in reality they should becomes members as the red channel on the grid changes. I think it must be some kind of lookup issue, because if I just use the textport and execute the command with values in place of the nearpoint call, I get correct values. Since nearpoint is being wrapped up inside of the point function is there a special syntax to make sure it evaluates ? Thanks! _cz Edited June 21, 2010 by czarquon Quote Link to comment Share on other sites More sharing options...
Macha Posted June 21, 2010 Share Posted June 21, 2010 Does this help? groupme.hipnc Quote Link to comment Share on other sites More sharing options...
czarquon Posted June 21, 2010 Author Share Posted June 21, 2010 Does this help? Thanks! Yeah, I had a bit of a typo too, forgetting leading "/" on the paths... _cz 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.