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

onAreaCombat events.xml

antonio664

Member
Joined
Jan 9, 2013
Messages
129
Reaction score
5
events.xml
Lua:
 <event class="Creature" method="onAreaCombat" enabled="1" />

what is the function of this?


I tested it, but I didn't notice any difference
 
Last edited:
events.xml
Lua:
 <event class="Creature" method="onAreaCombat" enabled="1" />

what is the function of this?


I tested it, but I didn't notice any difference

Check ./scripts/creature.lua and you will see what the function Creature.onAreaCombat does.

Default in TFS1.3 it looks like this
Lua:
function Creature:onAreaCombat(tile, isAggressive)
    return RETURNVALUE_NOERROR
end

But you can basically execute code when creature does onAreaCombat
 
Back
Top