Serpens Posted June 9, 2017 Share Posted June 9, 2017 (edited) Hi, I would like to give a "GoToEntity" command to a tamed beefalo, so that it is running to the player. But it seems something else is giving him every ~1 second the command to slowly go to to the player, so he stops running everytime. The main goal is to tell the beefalo that it should run to the player (when he rings a bell, I alreday have the bell and all of it) How to do this properly? Edited June 9, 2017 by Serpens Link to comment Share on other sites More sharing options...
spideswine Posted June 9, 2017 Share Posted June 9, 2017 I would guess his brain? It updates every 0.25 seconds(if I understand it correctly), so unless you've added the command to his brain it will just override it every 0.25 seconds. ...I think, I'm not too experienced at this. Link to comment Share on other sites More sharing options...
rezecib Posted June 9, 2017 Share Posted June 9, 2017 @Serpens What you'd want is a While node in the brain, that checks whether the bell has been rung recently (this could be stored in a variable in the brain and given a task to set it to false after a certain time), and if that's the case, then GoToEntity. Feel free to use tools/brainsurgery.lua from my rebalance mod (I used to have an example of using it for beefalo brains, but it looks like that was removed before I put it on GitHub...). Link to comment Share on other sites More sharing options...
Serpens Posted June 9, 2017 Author Share Posted June 9, 2017 4 minutes ago, rezecib said: @Serpens What you'd want is a While node in the brain, that checks whether the bell has been rung recently (this could be stored in a variable in the brain and given a task to set it to false after a certain time), and if that's the case, then GoToEntity. Feel free to use tools/brainsurgery.lua from my rebalance mod (I used to have an example of using it for beefalo brains, but it looks like that was removed before I put it on GitHub...). thank you I have absolutely no knowledge about brains and how they work So an example would be great. Do you still have it somewhere lying around ? Link to comment Share on other sites More sharing options...
rezecib Posted June 9, 2017 Share Posted June 9, 2017 I don't... But brainsurgery is essentially just about grabbing, removing, and inserting brain nodes. So you can look at existing brains to learn about how the nodes work. Link to comment Share on other sites More sharing options...
Serpens Posted June 9, 2017 Author Share Posted June 9, 2017 hm.. okay. No it is not worth the time learning how brains work. Instead I will directly teleport the beefalo to the ringer. (the plan was beefalo runs to the player if in range of 30 or is teleported in range of 30 and runs the rest) Link to comment 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