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?
HScript: How to access local variables from outside?
3433 2 1-
- ajz3d
- Member
- 651 posts
- Joined: 8月 2014
- オフライン
-
- ajz3d
- 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?
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?
-
- PradeepBarua
- Member
- 443 posts
- Joined: 9月 2012
- オフライン
-
- Quick Links