Brothersvv09
Member
Posts: 57
Threads: 29
Joined: Aug 2012
Reputation:
0
|
HPL Script Problem!
I wanted to make two keys unlock two different doors (Key_1, Door_1, Key_2, Door_2) and i only found scripts to make only one key fit one door... I tried to make the script but it kept saying "ERR Error" and I dont know what to fix, it always says "} Detected 1,13" and something like that, I correct it but it keeps getting errors. Heres my script:
void OnStart()
{
AddUseItemCallback("", "Key_1", "LockedDoor1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LockedDoor1", false, true);
RemoveItem("Key_1");
}
{
AddUseItemCallback("", "Key_2", "LockedDoor2", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LockedDoor2", false, true);
RemoveItem("Key_2");
}
What do I take out?
|
|
08-03-2012, 10:21 PM |
|