Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


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

Posts: 8
Joined: Oct 2010
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)