Jump to content

DOPs Grouping Expression Problems


czarquon

Recommended Posts

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 by czarquon
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...