SkatCh Posted January 21, 2015 Share Posted January 21, 2015 Does any one know how to start double sided transaction ? Link to comment
Castillo Posted January 21, 2015 Share Posted January 21, 2015 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. Link to comment
SkatCh Posted January 21, 2015 Author Share Posted January 21, 2015 Yes bro i know how to do this but it always appear attempt to call global doubleSideTransaction (a nil value) Link to comment
SkatCh Posted January 21, 2015 Author Share Posted January 21, 2015 (edited) thx fixed Edited January 21, 2015 by Guest Link to comment
Castillo Posted January 21, 2015 Share Posted January 21, 2015 You are unpacking "arg" which is not defined anywhere @ createObjectDoubleSided. Link to comment
SkatCh Posted January 21, 2015 Author Share Posted January 21, 2015 sorry bro did work again function createObjectDoubleSided( ... ) local args = {...} local temp = _createObject( unpack(args) ) setElementDoubleSided(temp, true) return temp end Link to comment
TAPL Posted January 21, 2015 Share Posted January 21, 2015 I guess you want something like this: _createObject = createObject function createObject( ... ) local args = {...} local temp = _createObject( unpack(args) ) setElementDoubleSided(temp, true) return temp end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now