Jump to content
  • 0

How to spawn custom monster using "thing spawn"


TheGuy

Question

(I'm using ultimate doom builder in Doom 2 UDMF)

Ok so I know how to spawn an actor that's already in the game using the "spawn thing" command, but how do I spawn a custom actor that I added to the wad? It doesn't appear in the option when I have to select the "Thing Type".To clarify, I'm trying to make it so that said custom enemy spawns in a Map Spot once I wald over a line.

 

Here's the custom monster I'm trying to spawn

Quote

ACTOR Troopod 19001
{
  Health 70
  Radius 20
  Height 56
  Mass 100
  Speed 12
  PainChance 200
  Monster
  +FLOORCLIP
  SeeSound "imp/sight"
  PainSound "imp/pain"
  DeathSound "imp/death"
  ActiveSound "imp/active"
  HitObituary "$OB_IMPHIT"
  Obituary "$OB_IMP"
  States
  {
  Spawn:
    TROI AB 10 A_Look
    Loop
  See:
    TROI AABBCCDD 3 A_Chase
    Loop
  Melee:
  Missile:
    TROI EF 8 A_FaceTarget
    TROI G 6 A_TroopAttack
    TROI G 6 A_TroopAttack
    Goto See
  Pain:
    TROI H 2
    TROI H 2 A_Pain
    Goto See
  Death:
    TROI I 8
    TROI J 8 A_Scream
    TROI K 6
    TROI L 6 A_NoBlocking
    TROI M -1
    Stop
  XDeath:
    TROI N 5
    TROI O 5 A_XScream
    TROI P 5
    TROI Q 5 A_NoBlocking
    TROI RST 5
    TROI U -1
    Stop
  Raise:
    TROI ML 8
    TROI KJI 6
    Goto See
  }
}

 

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 1

You can give the monster a SpawnID (best something over 200) and use this number as the argument for Thing Spawn.

 

Alternatively, you can leave the argument as None, and add a custom field arg1str in the line's custom tab, set its type to string and its value to Troopod (or how the monster class will be named).

Share this post


Link to post
  • 1

Your other option is to use SpawnSpot or SpawnSpotFacing, both of which use a string as the argument for identifying the thing to spawn:

 

SpawnSpotFacing("Troopod",<mapspot TID>)

 

Share this post


Link to post
  • 0
25 minutes ago, jaeden said:

You can give the monster a SpawnID (best something over 200) and use this number as the argument for Thing Spawn.

 

Alternatively, you can leave the argument as None, and add a custom field arg1str in the line's custom tab, set its type to string and its value to Troopod (or how the monster class will be named).

 

Thank you, that worked. Do you know where I could find informations like that in the future? The ZDoom wiki is weird to navigate when it comes to highly specific stuff like this.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...