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
I need help with Trigger enemies
eg15ncvfxa Offline
Junior Member

Posts: 1
Threads: 2
Joined: Jun 2012
Reputation: 0
#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
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#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 :S Ask Your Computer

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
06-12-2012, 09:50 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find




Users browsing this thread: 1 Guest(s)