Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
PlinkyBits

Help with spawning enemies with scripts?

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?

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×