Jump to content
What you need to know about Doomworld and the GDPR Read more... ×
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Lorenz0

Infinite Projectile Spawn

Question

So I wanted to make an obstacle, which is a corridor with imp fireballs shooting out of the walls, and you would have to avoid them in order to get through the corridor. I figured out how to make the projectiles shoot, using this script, but how do I make them shoot infinitely? Is that even possible?

 

zYtKTCI.png

 

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0
#include "zcommon.acs"

script 1(void) {

    while(1) {

        Thing_Projectile(9, 10, 64, 90, 0);

        Delay(35);

    }

}

 

Note that every infinite loop needs to contain a delay, otherwise the game would freeze and crash. See also: https://zdoom.org/wiki/Loops

 

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
×