Page 1 of 1
Monster activated scripts
Posted: Fri Oct 24, 2008 22:31
by The Ultimate DooMer
Running these scripts via actors with the +ACTIVATEMCROSS flag, and also via sector action things with the deaf flag seem to be broken now. (they worked last year with an older version, not sure which one as it was ages ago now)
Tested with 1.0.30, 1.1.03 and r188.
Posted: Fri Oct 24, 2008 22:46
by Enjay
I just managed to get a DoomImp to activate a line and a thing script. Also, I made a custom actor, inheriting from the DoomImp and removed the ismonster flag just to see if that was relevant and it still worked. r188
Do you have a sample actor that isn't activating scripts?
[edit]Oh, and an obvious question, do your scripts do things that will be obvious to actors that did not activate the script? ie should the player see the effect of the script. I know that I once had a script that was working perfectly, but the only one that could "see" the effect was the monster who ran the script.[/edit]
Posted: Fri Oct 24, 2008 23:17
by The Ultimate DooMer
I've just been playing around with it, and it seems that the lines and sector actions are no longer running internal ACS functions like printing, incrementing a variable etc. whereas they used to work last year when I made a script using such techniques.
Posted: Fri Oct 24, 2008 23:27
by Enjay
Well, the script I used was:
Code: Select all
#Include "ZCommon.ACS"
script 1 (void)
{
printbold(s:"Line activated.");
}
script 2 (void)
{
printbold(s:"Thing activated.");
}
When the imp walked over the script line, I saw the script 1 message. When it walked into a different sector, I saw the second message.
Just load up the file then wake the imp by shooting. Let him come to you and you should see both messages.
Posted: Fri Oct 24, 2008 23:58
by Graf Zahl
Post something that doesn't work, please.
Posted: Sat Oct 25, 2008 1:06
by The Ultimate DooMer
And I was just on my way here to say that I was testing with the one special that doesn't work in this way...print (and that's cos I haven't used this method for months too so forgot about it). Oh well, back to the asylum, delete this thread etc.