Advertisement
Guest User

Untitled

a guest
May 25th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Case "goal"
  2. ; Update progress bar
  3. Game_Stage_UpdateProgressBar("Loading object n."+j+": Goal Ring", Float#(j)/Float#(xmlNodeChildCount(RootChildNode)))
  4.  
  5. positionX# = 0
  6. positionY# = 0
  7. positionZ# = 0
  8.  
  9. rotationX# = 0
  10. rotationY# = 0
  11. rotationZ# = 0
  12.  
  13.  
  14.  
  15. ; normalDest$ = xmlNodeAttributeValueGet(SceneChildNode, "dest")
  16. ; Setup position, rotation and scale.
  17. ScenePosition = xmlNodeFind("position", SceneChildNode)
  18. If (ScenePosition<>0) Then
  19. positionX# = Float(xmlNodeAttributeValueGet(ScenePosition, "x"))
  20. positionY# = Float(xmlNodeAttributeValueGet(ScenePosition, "y"))
  21. positionZ# = Float(xmlNodeAttributeValueGet(ScenePosition, "z"))
  22. End If
  23.  
  24. SceneRotation = xmlNodeFind("rotation", SceneChildNode)
  25. If (SceneRotation<>0) Then
  26. rotationX# = Float(xmlNodeAttributeValueGet(SceneRotation, "pitch"))
  27. rotationY# = Float(xmlNodeAttributeValueGet(SceneRotation, "yaw"))
  28. rotationZ# = Float(xmlNodeAttributeValueGet(SceneRotation, "roll"))
  29. End If
  30.  
  31. obj.tObject = Object_Goal_Create(positionX#, positionY#, positionZ#,rotationX#,rotationy#,rotationZ#,"")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement