Jump to content

Recommended Posts

Hey,

as per usual with coding issues, this is probably a simple fix - i just cant seem to see it!
im trying to give a prefab the locomotor component post init so i can get it to move + eat food. ive got all the backend stuff (such as brains and buffered actions) working fine, but the prefab simply doesnt seem to want to move. as an example, ive attached a screenshot of the prefab's locomotor table when food is placed near it - everything seems to be as expected, and yet it refuses to move! (the "l" table being printed is the DebugEntity's locomotor component)

additionally, calling the locomotor's RunForward() method (which should bypass animations and sg states) doesnt do anything either.....

any suggestions or help would be much appreciated - i havent bothered submitting code because it basically boils down to 'inst:AddComponent("locomotor")' but if it would help you help me i will!

thanks in advance x

fflocomotor.PNG

Edited by MigratoryCoconuts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...