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
Door Callback Doesnt Work
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#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
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#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




Users browsing this thread: 1 Guest(s)