Jump to content

Recommended Posts

Hi guys im new to DST modding but im really interesting in making player AI mod. The problem is dont understand how the game works. I tried making testbrain.lua which contain:

local TestBrain = Class(Brain, function(self, inst)
    Brain._ctor(self, inst)
end)

function TestBrain:OnStart()
    print("test")
end
return TestBrain

the in game I spawn wilson and SetBrain to testbrain but it doesnt print anything

I already tried to read mod with AI and paste it to testbrain.lua and still doesnt do anything and also i have read this guy code here

But its too complicated for someone new like me to understand

So if someone dont mind please share some knowledge how to implement the brain to wilson prefab

Thanks before and sorry for bad english

Edited by evafour
Link to comment
https://forums.kleientertainment.com/forums/topic/83076-help-create-an-ai-mod/
Share on other sites

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...