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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't get door to lock using SetSwingDoorLocked("mansion_1", false, true)
Arvaga Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2010
Reputation: 1
#6
RE: Can't get door to lock using SetSwingDoorLocked("mansion_1", false, true)

I tried it too and it didn't work the way he did it, but I got it to work this way...
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
  SetSwingDoorLocked(asEntity, false, true);
  PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
  RemoveItem(asItem);
}
since asEntity is the entity we used the item on and the asItem, obviously, is the item.
This way you can make a global method to unlock doors, no need to make functions for every door you have to unlock.

Visit the scripts recollection thread to find scripts for your custom stories.
10-21-2010, 10:39 PM
Find


Messages In This Thread
RE: Can't get door to lock using SetSwingDoorLocked("mansion_1", false, true) - by Arvaga - 10-21-2010, 10:39 PM



Users browsing this thread: 1 Guest(s)