ID:150146
 
Evrytime a bullet his wall the wayer will anything dentity 1 it does the flick ad i get errors like no health proc

Bump(O)
if(ismob(O))
usr << ""

var/mob/M = O // so we can use mob variables with M


flick('bloodhit.dmi',M)


M.Health -= 10
M:deathcheck()


//do your damage routine here
endmissile() // we hit something, so the missile stops

can any one help
Rollerc wrote:
Evrytime a bullet his wall the wayer will anything dentity 1 it does the flick ad i get errors like no health proc

It's your indentation. All the lines marked with <FONT COLOR="#FFFFA0">»</FONT> must be indented one more tab.

Bump(O)
if(ismob(O))
usr << "" <FONT COLOR="#FFFFA0">// Why is this line here?</FONT>

<FONT OLOR="#FFFFA0">»&nbsp;&nbsp;&nbsp;</ FONT>var/mob/M = O // so we can use mob variables with M


<FONT COLOR="#FFFFA0">»&nbsp;&nbsp;</FONT> flick('bloodhit.dmi',M)


<FONT COLOR="#FFFFA0">»&nbsp;&nbsp;</FONT> M.Health -= 10
<FONT COLOR="#FFFFA0">»&nbsp;&nbsp;</FONT> M<FONT COLOR="#FFFFA0">.</font>deathcheck()


//do your damage routine here
endmissile() // we hit something, so the missile stops