Jump to content

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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