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


Thread Closed 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script help
Author Message
Steelen Offline
Junior Member

Posts: 4
Joined: Dec 2013
Reputation: 0
Post: #1
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:
[Image: 1vGV8FM.png]
12-12-2013 10:15 PM
Find all posts by this user
daortir Offline
Senior Member

Posts: 422
Joined: Sep 2013
Reputation: 18
Post: #2
RE: Script help

AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.

12-12-2013 10:21 PM
Find all posts by this user
Daemian Offline
Posting Freak

Posts: 1,130
Joined: Dec 2012
Reputation: 49
Post: #3
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
Find all posts by this user
daortir Offline
Senior Member

Posts: 422
Joined: Sep 2013
Reputation: 18
Post: #4
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
Find all posts by this user
Steelen Offline
Junior Member

Posts: 4
Joined: Dec 2013
Reputation: 0
Post: #5
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
[Image: FF57Xpy.png]
(sorry for the white stuff over it, no sex jokes please)
12-12-2013 11:44 PM
Find all posts by this user
Daemian Offline
Posting Freak

Posts: 1,130
Joined: Dec 2012
Reputation: 49
Post: #6
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
Find all posts by this user
daortir Offline
Senior Member

Posts: 422
Joined: Sep 2013
Reputation: 18
Post: #7
RE: Script help

Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?

12-13-2013 12:02 AM
Find all posts by this user
Steelen Offline
Junior Member

Posts: 4
Joined: Dec 2013
Reputation: 0
Post: #8
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
Find all posts by this user
daortir Offline
Senior Member

Posts: 422
Joined: Sep 2013
Reputation: 18
Post: #9
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
Find all posts by this user
Steelen Offline
Junior Member

Posts: 4
Joined: Dec 2013
Reputation: 0
Post: #10
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
[Image: 2Dy1iRB.png]
12-13-2013 08:48 AM
Find all posts by this user
Thread Closed 




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