HumiliatioN
Posting Freak
Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation:
18
|
RE: How to unlock door with key?
(12-09-2010, 11:25 PM)Frontcannon Wrote: This screws up your script:
void USedKeyOnDoor(string &in asItem, string &in asEntity)
}
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door," "mansion_1", 0, false);
{ RemoveItem(key1
Way too many syntax errors.
Fixed:
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false);
RemoveItem("key1");
}
You also should take a look here.
edits
With every other read, I find a new syntax error. Do you check your script after saving?
-
There's a comma missing in your callback.
I dont understand i dont see any scripting code errors.. i save after i change scripting and test door and key.. i fixed that command but doesnt work This is hard...
“Life is a game, play it”
|
|
12-09-2010, 11:36 PM |
|