Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shadowCaster = {"f36ca6", "7e6721", "950033", "e40b43", "dc8b4a", "ec767f", "4c656d", "f048d4"}
- --Set Prams for Mission Selector Button
- butDayNight = {}
- butDayNight.click_function = 'dayNight'
- butDayNight.label = 'Night'
- butDayNight.function_owner = self
- butDayNight.rotation = { 0, 180, 0 }
- butDayNight.position = { 0, 1.2, 0 }
- butDayNight.font_size = 400
- butDayNight.width = 4200
- butDayNight.height = 1650
- butDayNight.index = 0
- function onload()
- self.createButton(butDayNight)
- end -- END onload()
- function dayNight()
- local ScaleSet = {0.001,0.001,0.001}
- if butDayNight.index == 0 then
- for i = 1, #shadowCaster do
- local obj = getObjectFromGUID(shadowCaster[i])
- obj.setScale(ScaleSet)
- end
- butDayNight = {}
- butDayNight.index = 1
- butDayNight.label = 'Day'
- end
- end -- END dayNight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement