MigratoryCoconuts Posted December 19, 2016 Share Posted December 19, 2016 (edited) 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 Edited December 19, 2016 by MigratoryCoconuts Link to comment https://forums.kleientertainment.com/forums/topic/72639-code-help-request-locomotor-not-locomoting/ Share on other sites More sharing options...
MigratoryCoconuts Posted December 19, 2016 Author Share Posted December 19, 2016 hi, if yall run into this problem its because id forgotten to use MakeCharacterPhysics - id only used entity:AddPhysics!!! the issue is all sorted now Link to comment https://forums.kleientertainment.com/forums/topic/72639-code-help-request-locomotor-not-locomoting/#findComment-850471 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now