Guest User

Element to Deco

a guest
Aug 22nd, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. function deco(safe)
  2.     tpt.start_getPartIndex()
  3.      while tpt.next_getPartIndex() do
  4.         local index = tpt.getPartIndex()
  5.             if tpt.get_property("dcolour",index) == 0 then
  6.                 tpt.set_property("dcolour",elements.property(tpt.get_property("type",index),"Color"),index)
  7.             end
  8.             if convert ~= true then
  9.                 tpt.set_property("type",elem.DEFAULT_PT_DMND,index)
  10.             end
  11.      end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment