Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door Callback Doesnt Work
Author Message
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #1
Door Callback Doesnt Work
Hi, how do I make it so that when you grab a swing door it triggers a function?

06-04-2011 08:42 PM
Find all posts by this user Quote this message in a reply
ferryadams10 Offline
Senior Member

Posts: 278
Joined: Apr 2011
Reputation: 18
Post: #2
RE: Door Callback Doesnt Work
void OnStart()
{
SetEntityPlayerInteractCallback("Name of the entity (in your case name of the door)", "Function Name", Whether callback gets removed after it has been called could be true or false);
}

void FunctionName(string &in entity)
{
//Put here the things to happen when interacting with the door
}


Kind Regards,
The guy you kicked out of your story build team.Wink
Ferry Adams

Got a nice sofa
Please come and have a seat for a while

06-04-2011 08:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)