question

Michael O'Connell avatar image
1 Like"
Michael O'Connell asked Brandon Peterson answered

Why might an item's location not display correctly after setloc?

In an OnEntry trigger, I am setting the location of an item within a queue with setloc. When I set a breakpoint and step through, everything works fine. However, when I run with no breakpoint, the location is not updated.

I've tried updatelocations with no effect.

locationdisplay
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Brandon Peterson avatar image
2 Likes"
Brandon Peterson answered

Michael,

In the Queue's properties GUI you need to select "Do Nothing" in the Item Placement drop down menu. If you do not then the Queue will adjust the items's location on it's own and override any setloc() commands that you use. The reason that you are not seeing your changes when you use the command (even with a breakpoint) is because the Queue adjusts the location of the item in the code that gets executed when the screen is redrawn.

I hope this helps,

Brandon

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.