Advertisement
Guest User

rotation bug

a guest
Apr 20th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. local rotation = -90
  2. local ped = createPed(50, 715.81, -466.9, 16.34, rotation)
  3.  
  4. local x, x, r = getElementRotation(ped)
  5. outputChatBox("Phrase 1: "..r)
  6. setElementFrozen(ped, true)
  7.  
  8. local x, x, r = getElementRotation(ped)
  9. outputChatBox("Phrase 2: "..r)
  10. setElementRotation(ped, 0, 0, r)
  11.  
  12. local x, x, r = getElementRotation(ped)
  13. outputChatBox("Phrase 3: "..r)
  14.  
  15. addCommandHandler("f",
  16.         function()
  17.                 setElementFrozen(ped, not isElementFrozen(ped))
  18.                 outputChatBox("Changed frozen state to "..tostring(isElementFrozen(ped)))
  19.         end
  20. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement