I've been searching everywhere but cannot seem to find it. I don't mean to unlock a door with a key.. just that when I pick up an item.. the door unlocks automatically. Any way to do that?
Sure can!
void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);
http://wiki.frictionalgames.com/hpl2/amn...ions#doors
Also, if you want to trigger the unlock on item pickup, you can use this
void SetEntityCallbackFunc(string& asName, string& asCallback);
Calls a function when the player interacts with a certain entity.
Callback syntax:
void MyFunc(string &in asEntity, string &in type)
Type depends on entity type and includes: “OnPickup”, “Break”, “OnIgnite”, etc"
http://wiki.frictionalgames.com/hpl2/amn...s#entities