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?
[ACS] Checking if player attempts to unlock door?
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!)
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!)
Re: [ACS] Checking if player attempts to unlock door?
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.
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?
Shame I can't use ZScript since I want zandronum compatibility. Oh well.
