Jump to content

About double side


SkatCh

Recommended Posts

Posted

Create a function which when you execute it, it replaces the original createObject with a custom one, which creates the object and sets it double sided, then create another which restores the original function, to end the transaction.

Posted

sorry bro did work again

function createObjectDoubleSided( ... ) 
  local args = {...} 
    local temp = _createObject( unpack(args) ) 
    setElementDoubleSided(temp, true) 
    return temp 
end 

Posted

I guess you want something like this:

_createObject = createObject 
  
function createObject( ... ) 
  local args = {...} 
    local temp = _createObject( unpack(args) ) 
    setElementDoubleSided(temp, true) 
    return temp 
end 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...