Jump to content

Wrong values for the `Facing` property of IsoWindow objects

Recommended Posts

When an IsoWindow is oriented either East or South, the property Facing of the window indicates a wrong value, respectively West and North.


For example, given an IsoWindow that is oriented East, the following code would print W in the console instead of E:


When the IsoWindow objects are oriented either North or West, then we get the proper values, respectively N and W

Here's the code I'm using to print the values in the console:

function onFillWorldObjectContextMenu(player, context, worldobjects, test)
    for _, object in ipairs(worldobjects) do
        if instanceof(object, 'IsoWindow') then
            local orientation = object:getProperties():Val('Facing')
            print('DEBUG: Window facing ' .. orientation)


Note: I had to crop the screenshots to fit the 4MB upload limit, but I can provide the full version if needed, just ask.






Edited by co-

Share this post

Link to post
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.

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...