Jump to content
  • 0

Running multiple ACS_NamedExecute at the same time?


necros

Question

Just wondering if it is possible to have the same function run at the same time?  Using GZDoom, I have my ACS script like this for my UDMF level:

while(TRUE)
{
	for (int i = 30; i <= 36; i+=2)
	{
		ACS_NamedExecuteWait("powerRoom_fireBeam", 0, i, i + 1, 0);
	}
}

This works fine because the code waits until the first run of the function is done before starting another one.

 

If I do this:

while(TRUE)
{
	for (int i = 30; i <= 36; i+=2)
	{
		ACS_NamedExecute("powerRoom_fireBeam", 0, i, i + 1, 0);
		Delay(70);
	}
}

It will skip every other function call because the function takes more than 70 ticks to complete.

 

A more obvious example would be something like this:

ACS_NamedExecute("powerRoom_fireBeam", 0, 30, 31, 0);
ACS_NamedExecute("powerRoom_fireBeam", 0, 32, 33, 0);
ACS_NamedExecute("powerRoom_fireBeam", 0, 34, 35, 0);
ACS_NamedExecute("powerRoom_fireBeam", 0, 36, 37, 0);

Only the first call will run, the others are just skipped.

 

Is this a hard limitation?  Am I doing something wrong?

Edited by necros

Share this post


Link to post

2 answers to this question

Recommended Posts

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