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
[SOLVED] How to make a Crowbar work?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Event When Something has been picked up

(04-24-2011, 02:51 PM)laser50 Wrote: Just as the title Said, How do i make an event happen once a player picked an item up?

(Code And Explaination please, if possible.)
void OnStart()
{
SetEntityPlayerInteractCallback("Item", "Function", true);
}
void Function(string &in asEntity)
{
[EVENT]
}

Item = The item that is interacted with
Function = The function that is called
EVENT = What happens after the player picks the item up
SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); = Line of code

(This post was last modified: 04-24-2011, 03:02 PM by Kyle.)
04-24-2011, 03:00 PM
Find


Messages In This Thread
[SOLVED] How to make a Crowbar work? - by laser50 - 04-24-2011, 02:51 PM
RE: Event When Something has been picked up - by Kyle - 04-24-2011, 03:00 PM
RE: How to make a Crowbar work? - by laser50 - 04-24-2011, 03:43 PM



Users browsing this thread: 1 Guest(s)