Jump to content
  • 0

Help with spawning enemies with scripts?


PlinkyBits

Question

I am using Doombuilder X (doombuilder 2 but updated, essentially) and trying to use a script to spawn in these monsters around the player.
The trap SHOULD work as follows: Walk over linedef as you go to open a door, the linedef begins the script, the door is a teleport linedef and you end up in the centre of these mapspots- where the spawning then commences.

 

Quote

script 6 (void)
{
delay(35);

print(s:"insert inside joke here")

Thing_SpawnFacing(12,5,0,0);

delay(80);

Thing_SpawnFacing(13,4,0,0);

delay(80);

Thing_SpawnFacing(14,8,0,0);

delay(80);

Thing_SpawnFacing(15,110,0,0);
}

 

The problem is that no monsters spawn. I'm using doom2.wad and brutalv21.pk3 as the only resources on this. It's running GZDoom v3.2.1 during testing though I'll be running it on the latest version during actual play. I'm using UDMF.

 

Why aren't the enemies spawning? I can provide screenshots etc.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Things to check:

  • Do they have enough room to spawn? Place a temporary monster of the same type over the spawn position to check the space, then delete it.
  • Is anything blocking them? If something else with collision is there, the spawn fails.
  • Are they spawning on a sector that moves? You'll need to use MapSpotGravity instead.
  • Are the SpawnIDs valid?
  • Are the TIDs correct?
Edited by Nevander

Share this post


Link to post
  • 0
16 hours ago, PlinkyBits said:

Why aren't the enemies spawning? 

 

Are you testing with No Monsters selected?

I tried your script in my own pwad and it works with any editor.

 

TEST_SPAWN.7z

Edited by Kappes Buur

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...