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

When an enemy is hit or spots you..?

Recommended Posts

Kinda related to my "Scripted Music Stings" post. I found out how to script a music change when the player enters another sector, but I couldn't find anything regarding if an enemy spots you. Does anyone know how I can throw in a script where when an enemy spots you/gets shot by you, then the music changes??

Share this post


Link to post

If the monster is standing still until it sees you or gets shot by you: maybe you could put a linedef exactly where the monster is standing, then when it wakes up it walks over the line to activate the script?

Share this post


Link to post

TimeOfDeath: I went with your solution and it works great. The linedef is only triggered when an enemy trips it. I'm still trying to figure out how to make the music return to normal, but I feel like there's a workaround to it.

Kappes Buur: I'll try my best to read into making this function exactly how I want it to. Still green on ACS scripting.

Thanks guys!

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
×