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
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#11
RE: Script ERROR need help N00B

(05-01-2011, 01:03 AM)Karai16 Wrote:
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

I notice that there is no space in "string&in asEntity", which is supposed to be "string &in asEntity".

05-01-2011, 01:10 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: 2 Guest(s)