onAttack Method

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
LeoX9
UOX3 Novice
Posts: 55
Joined: Fri Nov 18, 2011 9:19 am
Location: Arizona, USA
Has thanked: 0
Been thanked: 0

onAttack Method

Post by LeoX9 »

I'm wondering how I use methods that I want to apply to an individual character...

if I wanted the following:

Code: Select all


function onAttack( mChar, tDef)
{
      mChar.TextMessage('Die fowl beast!');
      tDef.TextMessage('Aaaaaaaaah');
}

Or something like that (not sure if that is the right implementation of the function or not)....

How do I assign this to my player character?
Post Reply