HScript: How to access local variables from outside?

   3433   2   1
User Avatar
Member
651 posts
Joined: 8月 2014
オフライン
Hello.
With HScript, how can I access (from outside of the ObjNode node) local variables of a SOP node?
Example:
How can I access point 0's position X ($TX) of /obj/null1/control1 SOP from /obj/null2/point1's pt0x parameter?
User Avatar
Member
651 posts
Joined: 8月 2014
オフライン
Okay, I figured out that I can use point() expression function to do this.

One more question. If I reference $TX with the point() function, the function returns the position in object space. I can convert it to world space by adding ObjNode's tx. Is there some other, simpler way to get point's position converted to world space?
User Avatar
Member
443 posts
Joined: 9月 2012
オフライン
Try vtorigin()
  • Quick Links