YouGroove Posted August 3, 2013 Share Posted August 3, 2013 Well i have player Lua script that will just play animations for now. I have States.Lua that deals all states and have Flowgraph connexion that receive key events. This script States.lua has all variables i need to manage my Player.Lua movement : Calculated speed on X,Z Actual state Movement variable So i put on a Pivot : States.lua, i connected methods to key events. How could i get all variables of that Pivot and Lua file to use in Player.Lua ? On player update function : GetAllNeightboor entities and check that Pivot Name , than just read it's script variables ? It is not possible to pass some object, or pass a groupd of variable when calling some FlowGraph CallOutputs ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted August 3, 2013 Author Share Posted August 3, 2013 Ok i done it using GetAllNeightboor function to retrieve the pivot object that has script attached. Than i can access all it's script variables. That's not best way, or something to really do , as the search is done on each loop. No problem for little games, but with several characters, best to avoid that or too much use of Flowgraphs. It becomes even more complicated on some cases. Quote Stop toying and make games 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.