Steelen
Junior Member
Posts: 4
Threads: 2
Joined: Dec 2013
Reputation:
0
|
Script help
The code:
void OnEnter()
{
AddEntityCallback("Player", "livingkey", "monsterspawn", true, 1);
PlayMusic("amb_soft_mood", true, 1, 0.1f, 0, true);
AutoSave();
}
void monsterspawn()
{
SetEntityActive("tehmonster",true);
AddEnemyPatrolNode("tehmonster","PathnodeArea8",2,"");
AddEnemyPatrolNode("tehmonster","PathnodeArea11",6,"");
AutoSave;
}
The error I get:
|
|
12-12-2013, 10:15 PM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Script help
AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.
|
|
12-12-2013, 10:21 PM |
|
Daemian
Posting Freak
Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation:
49
|
RE: Script help
PlayMusic amb_soft_mood
You're making a porn cs ?
Just kidding, Daortic is probably right.
|
|
12-12-2013, 10:41 PM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Script help
I think a porn parody CS could be pretty hilarious : p. I guess the Dark Room Pedobear sequence was kinda close to that though xD
By the way, it's Daortir ;_;
No one can spell this right, I'll think I'll just rename to "D". And when you guys will piss me off I'd just leave the forums, AND EVERYONE WILL BE SAD.
And I'd be like, now you guys want the "D".
Sorry about that.
So, did you try to change what I suggested ?
|
|
12-12-2013, 11:26 PM |
|
Steelen
Junior Member
Posts: 4
Threads: 2
Joined: Dec 2013
Reputation:
0
|
RE: Script help
(12-12-2013, 10:21 PM)daortir Wrote: AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.
I got the same error but instead of saying the AddEntityCallback, it was AddEntityInteractCallback
(sorry for the white stuff over it, no sex jokes please)
|
|
12-12-2013, 11:44 PM |
|
Daemian
Posting Freak
Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation:
49
|
RE: Script help
Yeap, let's soften the mood. Sorry.
You should really use a copy of another working mod.
You're getting a weird path to your files in that error.
|
|
12-12-2013, 11:56 PM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Script help
Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?
|
|
12-13-2013, 12:02 AM |
|
Steelen
Junior Member
Posts: 4
Threads: 2
Joined: Dec 2013
Reputation:
0
|
RE: Script help
(12-13-2013, 12:02 AM)daortir Wrote: Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?
Same error
|
|
12-13-2013, 12:06 AM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Script help
Try removing the 1 in your callback. Make it
AddEntityInteractCallback("Player", "livingkey", "monsterspawn", true);
If it works you owe me a cookie.
(This post was last modified: 12-13-2013, 12:13 AM by daortir.)
|
|
12-13-2013, 12:12 AM |
|
Steelen
Junior Member
Posts: 4
Threads: 2
Joined: Dec 2013
Reputation:
0
|
RE: Script help
(12-13-2013, 12:12 AM)daortir Wrote: Try removing the 1 in your callback. Make it
AddEntityInteractCallback("Player", "livingkey", "monsterspawn", true);
If it works you owe me a cookie.
Nope
|
|
12-13-2013, 08:48 AM |
|
|