ohheylookitsmax
Junior Member
Posts: 13
Threads: 1
Joined: May 2013
Reputation:
0
|
RE: New To Scripting
(05-24-2013, 08:52 PM)The chaser Wrote: It's:
void OnStart()
{
AddUseItemCallback("", "FrontDoorKey", "Front_door", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "pick_key", "FrontDoorKey", 0, false);
SetSwingDoorLocked("Front_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Front_door", 0, false);
RemoveItem("FrontDoorKey");
}
You had a few more innecessary things
I copied what you gave me into my hps and it worked! The only issue im having now is with my .lang file. None of the entities' names show up :/
|
|
05-24-2013, 09:12 PM |
|