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.
Khan Offline
Member

Posts: 61
Threads: 12
Joined: Aug 2011
Reputation: 0
#3
RE: How to make things like crowbar and surgical needle.

(08-24-2011, 12:59 AM)Kyle Wrote: 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);
}

Would that be the same with a crowbar and everything? I understand basic scripting pretty good, but the more complicated stuff I have no clue, so, lol. Sad
08-24-2011, 01:11 AM
Find


Messages In This Thread
RE: How to make things like crowbar and surgical needle. - by Khan - 08-24-2011, 01:11 AM



Users browsing this thread: 1 Guest(s)