• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[LUA]? Monsters fight each other

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
I know this is probably wrong place for a question, but I have seen a thread somewhere which was explaining how to make certain monsters to attack each other, I just can't find it anywhere, googling didn't helped much as well. If anyone is aware where the script or technique is, please let me know, others unaware of such possibility might also be interested. Thanks in advance.
 
if is in range, get creature from pos, if creature is their enemy, attack them.

Keep in mind creatures are only active when a player is nearby. And thus a monsters onThink script will only act then. You could however make a loginscript with an addevent that loops itself to make sure the monster is always partly active as long as its alive in-game.
 
Back
Top