Corrupted Marine Posted April 18, 2008 I am trying to make my actor activate a script that is in my map. The idea is that the script will activate when this particular actor is killed. I have looked for the code all over the zdoom documentation and have found nothing except ACS_Execute which isnt a decorate function. Can anyone help me out please? 0 Share this post Link to post
esselfortium Posted April 18, 2008 I believe you can set ACS_Execute (or any other action) to be that thing's action in Doom Builder or whatever map editor you're using, and it'll execute that action when it dies. 0 Share this post Link to post
Corrupted Marine Posted April 18, 2008 Yeah you can, but the problem is, the monsters will respawn at a certain time and when they respawn they wont have that flag. I need to be able to add that into the decorate code so that every actor will have that flag by default. 0 Share this post Link to post
Graf Zahl Posted April 18, 2008 You still can use ACS_Execute in DECORATE - but better use ACS_ExecuteAlways because ACS_Execute may not be called if 2 monsters die at the same time. 0 Share this post Link to post
Corrupted Marine Posted April 18, 2008 Well how would I use ACS_execute in decorate? I tried using it with my actor death phase and it always crashes zdoom. 0 Share this post Link to post
Graf Zahl Posted April 18, 2008 Then you did something wrong. Maybe you could post the actor and the script source. 0 Share this post Link to post
Corrupted Marine Posted April 19, 2008 Nevermind I fixed it! :) Thanks to everyone for helping. 0 Share this post Link to post