Advertisement
Kijan

Add Play Area

Apr 30th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. function onLoad(save_state)
  2.   self.createButton({
  3.     click_function = "addPlayer",
  4.     function_owner = self,
  5.     label          = "",
  6.     position       = {0,0.05,0},
  7.     color          = {0, 0, 0, 0},
  8.     width          = 2400,
  9.     height         = 600
  10.   })
  11. end
  12.  
  13.  
  14. function addPlayer()
  15.   local pos = self.getPosition()
  16.   getObjectFromGUID("457c84").takeObject({
  17.     position       =  {0.00, 1.76, -16.67},
  18.     rotation       = {0.00, 180.00, 0.00},
  19.     smooth         = false
  20.   }).lock()
  21.   self.setState(2)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement