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
How to make things like crowbar and surgical needle.
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: How to make things like crowbar and surgical needle.

It's called the AddUseItemCallback command function. Go ahead and search it in the script functions page.

To make a needle open a door is like making a key open a door.

void OnStart()
{
     AddUseItemCallback("needle_1", "DoorName", "Func01", false);
}
void Func01(string &in asItem, string &in asEntity)
{
     RemoveItem(asItem);
     SetSwingDoorLocked(asEntity, false, true);
     PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
}

08-24-2011, 12:59 AM
Find


Messages In This Thread
RE: How to make things like crowbar and surgical needle. - by Kyle - 08-24-2011, 12:59 AM



Users browsing this thread: 2 Guest(s)