Cuberite Forum

Full Version: How to make a Monster attack Player
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hellooo Smile , I have been reading the documentation and I don't see any method like SetTarget or AttackEntity in cMonster, how is it done? Huh
I am seeing in the C++ source code of the Monster class that it contains a ->SetTarget() method but it seems that it is not exposed for use in Lua?
Hi, welcome to the forum. Unfortunately the api for monsters is rather lacking. There were plans for a modular approach where monster AI could easily be swapped with something different or even custom logic from a plugin, but that hasn't been worked on in years.
Ohh, i see :7 all right thank u for the answer