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
multiple functions problem
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: multiple functions problem

There are types of callbacks depends on what you want to do.
Collision callbacks (collide callback)
Interaction callbacks (interact callback)
State callbacks (for wheels and levers, statechange callback)
and special type of callbacks like "OnIgnite", "OnBreak" and "OnPickup"

I'm sure you want to do something as soon as player picks up lantern. So it's easy. Just set the lanterntrigger name into the interaction callback section of entity tab.

void lanterntrigger(string &in asEntity)
{
SetSwingDoorClosed("castle_1", true, true);
}


for further reference http://wiki.frictionalgames.com/hpl2/amn..._functions

10-09-2011, 06:29 AM
Website Find


Messages In This Thread
multiple functions problem - by reptalol - 10-09-2011, 06:06 AM
RE: multiple functions problem - by Tanshaydar - 10-09-2011, 06:12 AM
RE: multiple functions problem - by reptalol - 10-09-2011, 06:16 AM
RE: multiple functions problem - by Tanshaydar - 10-09-2011, 06:29 AM
RE: multiple functions problem - by reptalol - 10-09-2011, 06:43 AM



Users browsing this thread: 1 Guest(s)