Hey Everyone,
Here's the scenario: An enemy smashes a locked door and into a room. If he kills the player, the player respawns in the room. I want the door to come back locked.
I've managed to spawn the door, but it doesn't lock.
This code is in a function called on player death:
CreateEntityAtArea( "mansion_1", "mansion.ent", "door_pos_1", false );
SetSwingDoorLocked( "mansion_1", true, false );
The door gets spawned backwards(180 degrees on the Y axis), but other than that, nothing seems amiss. What am I missing?
Thanks!