Blockland Forums > Modification Help
AI Connections
lilboarder32:
I have a couple questions about AI Connections. Are they completely functional? How do you give one a name to be called for .getPlayerName()? Can you make them move their player? I've tried a couple things out, but it seems like only a few functions actually work for them. It seems like neither AI.setMove() nor AI.setMoveDestination() make his player move. Any feedback is appreciated.
M:
The movement functions run on the AIplayers themselves.
We can no longer package AIconnection::getPlayerName() to return our own value, so no, AIconnections can't get names for .getplayername() (as that would allow their players to have shapenames and as we all know even the merest potential for any sort of harmless abuse in a sandbox game is forbidden)
heedicalking:
It is pretty stupid that badspot blocked us from putting names on the bots.
lilboarder32:
--- Quote from: M on July 03, 2010, 06:56:50 AM ---The movement functions run on the AIplayers themselves.
--- End quote ---
Really? I dumped the methods of the AI Connection and those two I tried were dumped. So call it on the AI's control object?
--- Quote from: heedicalking on July 03, 2010, 05:02:47 PM ---It is pretty stupid that badspot blocked us from putting names on the bots.
--- End quote ---
I can see why he did that, but I think it'd be nice to at least have some other alternative for shapenames to identify a bot.
lilboarder32:
I need to bump this as I never really received any help. I cannot seem to get an AI Connection to move their player around. I create the AI Connection successfully, call .createPlayer() on it, then try both of those move methods, but absolutely nothing is happening. Help?