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
Help with monster activation[SOLVED]
Mr. Poppalopolis Offline
Junior Member

Posts: 1
Threads: 0
Joined: Apr 2011
Reputation: 0
#4
RE: Help with monster activation

Try this, taken directly off the wiki:
void SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in entity)

asName - internal name
asCallback - function to call
abRemoveOnInteraction - determines whether the callback should be removed when the player interacts with the entity

For you, this would mean you should use:
SetEntityPlayerInteractCallback("crowbar_1", "MonsterActivate1", true);

Also, make sure you change the inputs for your MonsterActivate1 function to match the callback syntax.
04-14-2011, 12:37 AM
Find


Messages In This Thread
RE: Help with monster activation - by Kraggdog - 04-13-2011, 07:16 PM
RE: Help with monster activation - by Rownbear - 04-13-2011, 07:20 PM
RE: Help with monster activation - by Mr. Poppalopolis - 04-14-2011, 12:37 AM
RE: Help with monster activation - by palistov - 04-14-2011, 02:12 AM
RE: Help with monster activation - by Rownbear - 04-14-2011, 09:32 AM



Users browsing this thread: 1 Guest(s)