Page 1 of 1

Modding Entity Behavior

Posted: Thu Mar 13, 2014 4:42 am
by N3X15
I'm planning a mod which introduces the concept of agriculture to the game. One of the requirements for this to work would be an ag-bot entity that flies around, planting seeds and harvesting grown plants.

I've looked at the game's code, and it seems all entities have hard-coded behavior. Is it still possible to mess around with an entity's behavior, perhaps by redefining a method? In this case, it would be whatever is called to get a construction robot's construction/destruction targets.

Re: Modding Entity Behavior

Posted: Thu Mar 13, 2014 6:41 am
by AlexPhoenix
direcly, nope yet as i know.
but you can control them from your control.lua script.

Re: Modding Entity Behavior

Posted: Thu Mar 13, 2014 9:55 am
by SilverWarior
Currently the game doesend directly expose the ingame AI to modding so you are pretty limited.
Developers did mentioned a slight posiblity that someday in the future tey might introduce a way for moders to change the inagme units AI but they are a bit afraid of that as it could potentionally lead to many problems and bugs which could eventually compleetly break the game.

Re: Modding Entity Behavior

Posted: Thu Mar 13, 2014 10:30 am
by kovarex
I could imagine flying bots that would be controllable by the script, the question is when would we do it :)

Re: Modding Entity Behavior

Posted: Thu Mar 13, 2014 10:40 am
by N3X15
I'll go ahead and make a request for this, then, after making sure it wouldn't be duplicating a prior request. Thanks.