TheBigNotch
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
|
Why doesn't this work?
void OnStart()
{
AddDebugMessage("Start: intro",false);
SetEntityPlayerInteractCallBack("key_1","ActivateMonster", true);
AddDebugMessage("SetEntityPlayerInteractCallBack complete.");
}
void OnEnter()
{
AddDebugMessage("Enter: intro",false);
}
void OnLeave()
{
AddDebugMessage("Leave: intro",false);
}
void ActivateMonster(string &in item)
{
SetEntityActive("monster_1",true);
AddDebugMessage("monster_1 is now active");
}
If you want to see the error you need to download the map. It's to large for me to write down. xD
(PS. I'm new to this.)
(This post was last modified: 05-12-2012 08:10 PM by TheBigNotch.)
|
|
| 05-12-2012 08:04 PM |
|
SilentHideButFine
Member
Posts: 151
Joined: May 2012
Reputation: 6
|
RE: Why doesn't this work?
(05-12-2012 08:04 PM)TheBigNotch Wrote:
void OnStart(){ AddDebugMessage("Start: intro",false); SetEntityPlayerInteractCallBack("key_1","ActivateMonster", true); AddDebugMessage("SetEntityPlayerInteractCallBack complete.");}
void OnEnter(){ AddDebugMessage("Enter: intro",false);}
void OnLeave(){ AddDebugMessage("Leave: intro",false);}
void ActivateMonster(string &in item){ SetEntityActive("monster_1",true); AddDebugMessage("monster_1 is now active");}
If you want to see the error you need to download the map. It's to large for me to write down. xD (PS. I'm new to this.)
Make it so i can read it ?
|
|
| 05-12-2012 08:07 PM |
|
TheBigNotch
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
|
RE: Why doesn't this work?
Weird copy bug. Srry.
|
|
| 05-12-2012 08:11 PM |
|
Your Computer
SCAN ME!
Posts: 3,236
Joined: Jul 2011
Reputation: 216
|
RE: Why doesn't this work?
The error tells you why. You tried to make a call to functions that don't exist.
FYI: You can reduce error messages by trying to load the map twice.
(This post was last modified: 05-12-2012 09:05 PM by Your Computer.)
|
|
| 05-12-2012 09:03 PM |
|
TheBigNotch
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
|
RE: Why doesn't this work?
Fixed.
|
|
| 05-12-2012 09:21 PM |
|