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
Item Interaction
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#4
RE: Item Interaction

Wait.. so what you're saying is you want a note to act like a key on the door?

EDIT: Ah, I see the problem I think. You're using the collide callback syntax for your function to call, and not the Interact callback syntax.

You can find all the functions syntax listed here: http://wiki.frictionalgames.com/hpl2/amn..._functions

Try this:

void OnStart()
{
SetEntityPlayerInteractCallback("albert_letter", "begindoor1", true);
}
void begindoor1(string &in asEntity)
{
SetLevelDoorLocked("begin_door", false);
}
(This post was last modified: 01-05-2011, 07:43 AM by Equil.)
01-05-2011, 07:10 AM
Find


Messages In This Thread
Item Interaction - by Russ Money - 01-05-2011, 05:53 AM
RE: Item Interaction - by Equil - 01-05-2011, 06:24 AM
RE: Item Interaction - by Russ Money - 01-05-2011, 06:42 AM
RE: Item Interaction - by Equil - 01-05-2011, 07:10 AM
RE: Item Interaction - by Russ Money - 01-05-2011, 08:11 AM
RE: Item Interaction - by Equil - 01-05-2011, 08:13 AM



Users browsing this thread: 1 Guest(s)