hellboy
Intermediate OT User
1. How work function onTarget? When creature is target then (make code) or when creature get damage then (make code)?
2. How write line to XML part?
It's correct?
#EDIT#
In creatureevent.cpp I found "target" with other event type, so propably line in xml are fine.
2. How write line to XML part?
PHP:
<event type="target" name="PetTarget" event="script" value="pettarget.lua"/>
#EDIT#
In creatureevent.cpp I found "target" with other event type, so propably line in xml are fine.
Last edited: