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

Thing_Damage not working

Recommended Posts

I have encountered a problem with my ACS script for GZDoom. The problem lies withing a
cutscene in which the player is supposed to die at the end before the
level finishes, but when it gets to that part of the script,
the Thing_Damage function does not work. My script looks like this:


script 1 OPEN

{
setplayerproperty(1, 1,PROP_TOTALLYFROZEN );
changecamera (1, 0, 0);
fadeto(0,0,0,1,3);

fadeto(0,0,0,0,1.0);
delay(1);
thing_activate(1);
print(s:"You are nothing...");
delay(50);
print(s:"Huh?");
delay(60);
Thing_Damage(0,100,21);
delay(300);
Exit_Normal(2);

}

Share this post


Link to post

Or just change the script type from OPEN to ENTER. Thing_Damage with 0 as the first parameter deals damage to the script's activator. OPEN script has no activator, it runs exactly once immediately after a map is loaded. ENTER script runs in one instance for each player who enters the map, with the player as the script's activator.

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
×