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


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script ERROR need help N00B
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#8
RE: Script ERROR need help N00B

Try This;


void OnStart()
{
AddUseItemCallback ("", "Corridor_Key", "door_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("Corridor_key");
}


And also, go in your editor and rename "Corridor Key" to "Corridor_Key"

I am sure if you do exactly this it will work =)
04-30-2011, 11:49 PM
Find


Messages In This Thread
Script ERROR need help N00B - by X4anco - 04-30-2011, 09:10 PM
RE: Script ERROR need help N00B - by NylePudding - 04-30-2011, 09:22 PM
RE: Script ERROR need help N00B - by Exostalker - 04-30-2011, 09:23 PM
RE: Script ERROR need help N00B - by X4anco - 04-30-2011, 09:27 PM
RE: Script ERROR need help N00B - by Kyle - 04-30-2011, 10:15 PM
RE: Script ERROR need help N00B - by X4anco - 04-30-2011, 11:00 PM
RE: Script ERROR need help N00B - by Tottel - 04-30-2011, 11:34 PM
RE: Script ERROR need help N00B - by Kyle - 04-30-2011, 11:56 PM
RE: Script ERROR need help N00B - by Simpanra - 04-30-2011, 11:49 PM
RE: Script ERROR need help N00B - by Karai16 - 05-01-2011, 01:03 AM
RE: Script ERROR need help N00B - by Kyle - 05-01-2011, 01:10 AM
RE: Script ERROR need help N00B - by Karai16 - 05-01-2011, 01:16 AM
RE: Script ERROR need help N00B - by NylePudding - 05-01-2011, 08:03 AM



Users browsing this thread: 2 Guest(s)