The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Locking A Door
Yahtzee Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2011
Reputation: 0
#1
Problem Locking A Door

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!
04-08-2011, 06:41 AM
Find


Messages In This Thread
Problem Locking A Door - by Yahtzee - 04-08-2011, 06:41 AM
RE: Problem Locking A Door - by Russ Money - 04-08-2011, 06:44 AM
RE: Problem Locking A Door - by Yahtzee - 04-08-2011, 06:48 AM



Users browsing this thread: 1 Guest(s)