Tindrone Posted June 23, 2016 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); } 0 Quote Share this post Link to post
illuknisaa Posted June 24, 2016 Give a tid to a player and change thing damage to reflect that. 0 Quote Share this post Link to post
scifista42 Posted June 24, 2016 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. 0 Quote Share this post Link to post
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.