[ACS] Checking if player attempts to unlock door?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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.

[ACS] Checking if player attempts to unlock door?

Postby Recurracy » Mon Feb 22, 2021 5:00 pm

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?
User avatar
Recurracy
Break out the buttah
 
Joined: 19 Dec 2008

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

Postby Jarewill » Tue Feb 23, 2021 12:53 am

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.
Jarewill
 
 
 
Joined: 21 Jul 2019

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

Postby Recurracy » Tue Feb 23, 2021 6:44 am

Shame I can't use ZScript since I want zandronum compatibility. Oh well.
User avatar
Recurracy
Break out the buttah
 
Joined: 19 Dec 2008


Return to Scripting

Who is online

Users browsing this forum: Ryuhi and 0 guests