• 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!

doMonsterSetTarget

Radd

New Member
Joined
Mar 23, 2012
Messages
31
Reaction score
0
Hello, i have some problems with script I am creating right now. Here is piece of my code:

Code:
	local troll = doCreateMonster("Troll", {x=984, y=991, z=7})
	local orc = doCreateMonster("Orc", {x=987, y=994, z=7})
	doMonsterSetTarget(orc, troll)
	doMonsterSetTarget(troll, orc)

This is supposed to create 2 monsters and make them attack eachother, but they seems like they don't want to fight, just stay in one place. Anyone know, what's the problem with them?
 
I guess the problem is that the monsters are no "enemies", the attacking will get canceled and they search for a real target instead.
All monsters are friends, you have to rewrite the monster AI / targetting.
 
Back
Top