Advertisement
expired6978

NetImmerse.psc

Aug 27th, 2014
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. Scriptname NetImmerse Hidden
  2.  
  3. ; Return whether the object has the particular node
  4. bool Function HasNode(ObjectReference ref, string node, bool firstPerson) native global
  5.  
  6. ; NiNode Manipulation
  7. float Function GetNodeWorldPositionX(ObjectReference ref, string node, bool firstPerson) native global
  8. float Function GetNodeWorldPositionY(ObjectReference ref, string node, bool firstPerson) native global
  9. float Function GetNodeWorldPositionZ(ObjectReference ref, string node, bool firstPerson) native global
  10. ; Note that there is no SetNodeWorldPosition as the world position is dependent on the position of all parents to the node
  11.  
  12. ; Returns nodeB - nodeA
  13. float Function GetRelativeNodePositionX(ObjectReference ref, string nodeA, string nodeB, bool firstPerson) native global
  14. float Function GetRelativeNodePositionY(ObjectReference ref, string nodeA, string nodeB, bool firstPerson) native global
  15. float Function GetRelativeNodePositionZ(ObjectReference ref, string nodeA, string nodeB, bool firstPerson) native global
  16.  
  17. Function SetNodeLocalPositionY(ObjectReference ref, string node, bool firstPerson, float y) native global
  18. Function SetNodeLocalPositionY(ObjectReference ref, string node, bool firstPerson, float y) native global
  19. Function SetNodeLocalPositionZ(ObjectReference ref, string node, bool firstPerson, float z) native global
  20.  
  21. ; Sets the scale of a particular Nif node
  22. float Function GetNodeScale(ObjectReference ref, string node, bool firstPerson) native global
  23. Function SetNodeScale(ObjectReference ref, string node, float scale, bool firstPerson) native global
  24.  
  25. ; Sets a NiTriShape's textures by name of the Nif node
  26. Function SetNodeTextureSet(ObjectReference ref, string node, TextureSet tSet, bool firstPerson) native global
  27.  
  28.  
  29. ; Array based functions, return true when successful, false when unsuccessful (node did not exist, or array wrong size)
  30.  
  31. ; returns the node's world position into the specify array, must be size of 3
  32. bool Function GetNodeWorldPosition(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  33.  
  34. ; returns the node's relative world position of nodeB minus nodeA into the specify array, must be size of 3
  35. bool Function GetRelativeNodePosition(ObjectReference ref, string nodeA, string nodeB, bool firstPerson, float[] in) native global
  36.  
  37. ; returns the node's local position into the specify array, must be size of 3
  38. bool Function GetNodeLocalPosition(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  39.  
  40. ; sets the node's local position of the specified array, must be size of 3
  41. bool Function SetNodeLocalPosition(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  42.  
  43.  
  44. ; All of the following rotations are in RADIANS
  45. ; returns the euler rotation of the node into the specified array, must be size of 3
  46. bool Function GetNodeLocalRotationEuler(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  47.  
  48. ; sets the euler rotation for the node of the specified array, must be size of 3
  49. bool Function SetNodeLocalRotationEuler(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  50.  
  51. ; returns the matrix rotation of the node into the specified array, must be size of 9
  52. bool Function GetNodeLocalRotationMatrix(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  53.  
  54. ; sets the matrix rotation for the node of the specified array, must be size of 9
  55. bool Function SetNodeLocalRotationMatrix(ObjectReference ref, string node, bool firstPerson, float[] in) native global
  56.  
  57.  
  58. ; DEPRECATED FUNCTIONS
  59. Function SetNodePositionX(ObjectReference ref, string node, float x, bool firstPerson) global
  60. NetImmerse.SetNodeLocalPositionX(ref, node, firstPerson, x)
  61. EndFunction
  62. Function SetNodePositionY(ObjectReference ref, string node, float y, bool firstPerson) global
  63. NetImmerse.SetNodeLocalPositionY(ref, node, firstPerson, x)
  64. EndFunction
  65. Function SetNodePositionZ(ObjectReference ref, string node, float z, bool firstPerson) global
  66. NetImmerse.SetNodeLocalPositionZ(ref, node, firstPerson, x)
  67. EndFunction
  68.  
  69. float Function GetNodePositionX(ObjectReference ref, string node, bool firstPerson) global
  70. return NetImmerse.GetNodeWorldPositionX(ref, node, firstPerson)
  71. EndFunction
  72. float Function GetNodePositionY(ObjectReference ref, string node, bool firstPerson) global
  73. return NetImmerse.GetNodeWorldPositionY(ref, node, firstPerson)
  74. EndFunction
  75. float Function GetNodePositionZ(ObjectReference ref, string node, bool firstPerson) global
  76. return NetImmerse.GetNodeWorldPositionZ(ref, node, firstPerson)
  77. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement