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
!!!SCRIPTING HELP!!!
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: !!!SCRIPTING HELP!!!

(01-19-2012, 02:08 AM)DJ1447 Wrote: I have been trying to get a key to unlock a door but its not working here is my extra lang:


Item Description
Item Name


that is all i have in it and here is my map:

void OnStart()
{

AddUseItemCallback("", "key1", "Door1", "UsedKeyOnDoor", true);

}

void UsedKeyOnDoor(string &in item, string &in door)

{
SetSwingDoorLocked(door1, false, true);
PlaySoundAtEntity("", "unlock_door", door1, 0, false);
RemoveItem(key1);

}
}

and that is all thats in that map... PLZ HELP!



You have an extra "}" at the bottom of the script. Remove that.
01-19-2012, 03:22 AM
Find


Messages In This Thread
!!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 02:08 AM
RE: !!!SCRIPTING HELP!!! - by Quotentote - 01-19-2012, 02:10 AM
RE: !!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 02:50 AM
RE: !!!SCRIPTING HELP!!! - by Statyk - 01-19-2012, 03:22 AM
RE: !!!SCRIPTING HELP!!! - by flamez3 - 01-19-2012, 03:41 AM
RE: !!!SCRIPTING HELP!!! - by DJ1447 - 01-19-2012, 11:44 PM
RE: !!!SCRIPTING HELP!!! - by Statyk - 01-20-2012, 12:16 AM



Users browsing this thread: 1 Guest(s)