Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with Trigger enemies
Author Message
eg15ncvfxa Offline
Junior Member

Posts: 1
Joined: Jun 2012
Reputation: 0
Post: #1
I need help with Trigger enemies
I have a mac and i put in the code but when i try to play the map it says error.


{
SetEntityCallbackFunc("Monster_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("Monster_1", true);
ShowEnemyPlayerPosition("Monster_1");
}
06-12-2012 09:45 PM
Find all posts by this user Quote this message in a reply
SilentHideButFine Offline
Member

Posts: 151
Joined: May 2012
Reputation: 6
Post: #2
RE: I need help with Trigger enemies
(06-12-2012 09:45 PM)eg15ncvfxa Wrote:  I have a mac and i put in the code but when i try to play the map it says error.


{
SetEntityCallbackFunc("Monster_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("Monster_1", true);
ShowEnemyPlayerPosition("Monster_1");
}
I'm not sure if that script is right for Mac Confused Ask Your Computer

Vill inte se mera. , New song check it out , download like comment!
06-12-2012 09:50 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #3
RE: I need help with Trigger enemies
You're missing the function header for the first code block. I would assume you meant to have void OnStart() there.

Tutorials: From Noob to Pro
06-12-2012 10:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)