Spider Mastermind
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > When an enemy is hit or spots you..?
 
Author
All times are GMT. The time now is 15:47. Post New Thread    Post A Reply
j_dickerson09
Warming Up


Posts: 20
Registered: 04-11


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??

Old Post 11-29-11 04:52 #
j_dickerson09 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
TimeOfDeath
Forum Regular


Posts: 1482
Registered: 06-06


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?

Old Post 11-29-11 17:27 #
TimeOfDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kappes Buur
Member


Posts: 497
Registered: 11-02


http://zdoom.org/wiki/Category:ACS_...ation_functions

You could play around with this

http://zdoom.org/wiki/CheckSight

( The ZDoom WIKI is your friend © )

Old Post 11-29-11 18:47 #
Kappes Buur is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
j_dickerson09
Warming Up


Posts: 20
Registered: 04-11


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!

Old Post 12-02-11 01:03 #
j_dickerson09 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
TimeOfDeath
Forum Regular


Posts: 1482
Registered: 06-06


When do you want the music to return to normal? after the monster is dead?

Old Post 12-02-11 15:55 #
TimeOfDeath is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 15:47. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > When an enemy is hit or spots you..?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory