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

Why can't I make the ACS script work?

Recommended Posts

I'm starting ACS scripting in Doom, I am following the instructions under the "Script actions and parameters" content on this page: http://zdoom.org/wiki/A_quick_beginner%27s_guide_to_ACS I've done every single step, copied and pasted the code, then tried running it and saw no changes at all. Here's the code I was putting into the Doom builder 2 script:
#include "zcommon.acs"

script 1 (void)
{
Thing_Damage(1,2,0);
}

Share this post


Link to post

It seems the guide there is a little wrong.

"Create a sector, and put a player start, and a red key. You'll then need to give each thing an identification number."

Giving a TID to the player start won't pass it on to the player.
You can give the player one by using:


Script 02 enter
{
Thing_ChangeTID(0,1);
}

At the start of the level, the players TID will be changed to 1.
http://zdoom.org/wiki/Thing_ChangeTID


Or you could change the script slightly:

Thing_Damage(0,2,0);

Giving a TID of 0 will usually mean the activator of the script, which in this case would be the player.

Hope this helped.

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
×