wh1sp3r Posted February 25, 2010 Share Posted February 25, 2010 Hi, Would like to ask, how to get directional light handle from different script ? Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
macklebee Posted February 25, 2010 Share Posted February 25, 2010 1) linking it to the object you are trying to access it with and using the GetTarget() or 2) setup a global entity inside the directional light script and refer to it in your script or 3) use the method described on page 12 of the Getting Started with LUA pdf file. I would use method 3 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
wh1sp3r Posted February 25, 2010 Author Share Posted February 25, 2010 cool, didn't know about this tutorial thanks, method 3 is working Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.