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
Script Help Interaction callback
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#4
RE: Interaction callback

That's Incorrect also, what works for me is:


PHP Code: (Select All)
    SetEntityPlayerInteractCallback("EWK""GotEWK"true);
    

        
void GotEWK(string &in asEntity)
    {
        
SetEntityActive("ScriptArea_2"true);
        
SetEntityActive("ScriptArea_4"true);
                
//Do whatever you please here
    


I used this when the player picks up a Key. You can set it to absolutely any item. I used it to call a function which in turn activated a monster, and so forth. You just make the Note not open up in the Journal.
(This post was last modified: 06-29-2013, 08:18 PM by Pshyched.)
06-29-2013, 08:16 PM
Find


Messages In This Thread
Interaction callback - by VillainousPotato - 06-29-2013, 05:51 PM
RE: Interaction callback - by Daemian - 06-29-2013, 07:58 PM
RE: Interaction callback - by ClayPigeon - 06-29-2013, 08:06 PM
RE: Interaction callback - by Daemian - 06-30-2013, 05:27 AM
RE: Interaction callback - by Pshyched - 06-29-2013, 08:16 PM
RE: Interaction callback - by PutraenusAlivius - 06-30-2013, 05:59 AM
RE: Interaction callback - by VillainousPotato - 07-01-2013, 12:31 AM



Users browsing this thread: 1 Guest(s)