Page 1 of 1

[ACS] Checking if player attempts to unlock door?

PostPosted: Mon Feb 22, 2021 5:00 pm
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?

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

PostPosted: Tue Feb 23, 2021 12:53 am
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.

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

PostPosted: Tue Feb 23, 2021 6:44 am
by Recurracy
Shame I can't use ZScript since I want zandronum compatibility. Oh well.