mob/Alien/verb/Attack(mob/client/M)
set src in oview(1)
for(var/obj/doors/D in view(1))
if(usr.Alien==1)
M.Health-=100
Health -= 100
if(M.Health<=0)
DeathCheck(M)
if(Health>=0)
DoorDeath()
Problem description: I know the code is wrong, been trying to sort this out for the last few hours now.
If a player is selected as the Alien, I want them to be able to attack certain doors, and players, but I can't get it to work.
This is kind of how to do it using the code your trying to use. Haven't tested it just make sure you add the line AlienDoor = 1 for doors you want to make it work on. This might not be the best way to do it but it should work.