Page 1 of 1

Monster disappearing?

Posted: Sun Jan 08, 2017 1:25 pm
by XASSASSINX
So. I made a custom monster, But when i spawn it, It imeddiatly dissapear! The sprites are all working, Because i can see all of his angles, So it must be the code!

Code: Select all

ACTOR Juggernautlizard 2187
{
 Radius 24
 Height 8
 Mass 500
 Health 500
 Speed 6
 PainChance 0
 seesound "juggernaut/sight"
 +DONTGIB
 States
	{
	Spawn:
	JUGG AAAAAAAAAAAA 10 A_Look
	JUGG A 0 A_PlaySound("juggernaut/idle",CHAN_VOICE)
	loop
  }
}
Any ideas?
Edit: After seeing the question again, I'm seeing that this a really noobish question! I'm using custom sprites, And i didn't put other states! That's why he dissapear! (I think, I will try again)

Re: Monster disappearing?

Posted: Sun Jan 08, 2017 1:32 pm
by kodi
You're calling A_look without having defined a See state. You'll probably also want to give it the Monster property while at it.

Re: Monster disappearing?

Posted: Sun Jan 08, 2017 3:16 pm
by XASSASSINX
Hey. Another question, The monster that i crated don't have some reason)any collision (And i can't hurt him too, Also, He has 37 of health, For. As i'm saying this, i already made the missile, see, spawn, and the death state (Even that i didn't te st it)

Re: Monster disappearing?

Posted: Sun Jan 08, 2017 3:31 pm
by Mikk-
You need the MONSTER flag combo.

Code: Select all

ACTOR MONSTER
    {
    Health 100 
    Radius 32
    Height 56
    Mass 500
    Speed 10
    MONSTER    // this is what you're missing. 
    States
        {
        [...]
        }
    } 

Re: Monster disappearing?

Posted: Sun Jan 08, 2017 3:34 pm
by XASSASSINX
Ohhhh... Yeah, I forgot that.