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
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#10
RE: Script ERROR need help N00B

void OnStart()
{
    AddUseItemCallback("", "RoomKey", "RoomDoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string&in asEntity)
{
    SetSwingDoorLocked("RoomDoor", false, true);
    PlaySoundAtEntity("", "unlock_door", "RoomDoor", 0, false);
    RemoveItem("RoomKey");
}
This is my code of my test map. It has a UsedKeyOnDoor code. My code is working, so you can compare and see if there are any mistakes.

Smile

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
05-01-2011, 01:03 AM
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: 5 Guest(s)