ok
i have made some punching bags (and they are mobs, and im not making a dbz game) but everytime i attack them they dissapear.
please help me!!
ID:261181
![]() Oct 3 2001, 2:09 pm
|
|
Pikkon The Great wrote:
where in the code? mob/verb/Attack()//This makes it so you can attack any mob within one tile of you
else <FONT COLOR=RED>NOTE:</FONT>DON'T COPY PASTE THAT CAUSE I DIDN'T GET THE INDENTATION RIGHT IT JUST SHOWS WHERE TO PUT IT |
try adding this into the attack code
if(istype(M,/mob/Punchingbag))
Statup()
Levelup()
else
//Rest of the attack code
This will not check to see if the Punchingbag's health is gone and make it dissappear making it so when the Punching Bag is attacked it doesn't lose health.