[ACS] Checking if player attempts to unlock door?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Recurracy
Posts: 559
Joined: Fri Dec 19, 2008 12:11 pm

[ACS] Checking if player attempts to unlock door?

Post by Recurracy »

Hi,

I want to recreate the keycard functionality from duke 3d, in which the player pulls up the proper keycard when he unlocks the appropriate door. Would it be possible to check, regardless of the map, whether the player is attempting to unlock a key-locked door?
Jarewill
 
 
Posts: 1855
Joined: Sun Jul 21, 2019 8:54 am

Re: [ACS] Checking if player attempts to unlock door?

Post by Jarewill »

As far as I know, that's not possible with ACS.
The only way that I know of is to use a ZScript event handler and override WorldLinePreActivated.
A good mod that does that is Nobody Told Me About id, it's in the zscript/main.txt starting at line 51.
User avatar
Recurracy
Posts: 559
Joined: Fri Dec 19, 2008 12:11 pm

Re: [ACS] Checking if player attempts to unlock door?

Post by Recurracy »

Shame I can't use ZScript since I want zandronum compatibility. Oh well.
Post Reply

Return to “Scripting”