Jump to content

FlowGraph passing objects ?


YouGroove
 Share

Recommended Posts

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 ?

Stop toying and make games

Link to comment
Share on other sites

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.

Stop toying and make games

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...