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
Script Help Key Unlock Door script won't work :(
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#2
RE: Key Unlock Door script won't work :(

If it says "could not use item this way", then the problem is definitly in this line, otherwise you wouldn't get this message:

AddUseItemCallback("", "basementkey_1", "basementdoor_1", "UsedKeyOnDoor", true);


Also you might want to replace
PlaySoundAtEntity("", "unlock_door","basementdoor_1", 0.0f, false);
RemoveItem(basementkey_1);
with
PlaySoundAtEntity("", "unlock_door","asEntity", 0.0f, false);
RemoveItem(asItem);
. This won't solve your problem, but now you can use this method for every key-door callback.
10-08-2012, 10:16 PM
Find


Messages In This Thread
Key Unlock Door script won't work :( - by Rowzter - 10-08-2012, 10:00 PM
RE: Key Unlock Door script won't work :( - by craven7 - 10-08-2012, 10:16 PM



Users browsing this thread: 1 Guest(s)