obj |
The runtime error I get only happens when I attack another mob, when I just attack at nothing, it works. The runtime is:
runtime error: Cannot read null.damage |
ID:172510
Apr 30 2004, 4:52 pm (Edited on Apr 30 2004, 5:08 pm)
|
|||
I'm having trouble with my attack. it goes:
The runtime error I get only happens when I attack another mob, when I just attack at nothing, it works. The runtime is:
| |||
Your problem is that you never set the obj's owner variable. Therefore, src.owner is null.